This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts-site.git


The following commit(s) were added to refs/heads/master by this push:
     new f505db2  WW-5129 Adds notes how to define dynamic attributes in second 
control generated by the tag
f505db2 is described below

commit f505db20ff47fb67667a8c7130f936b7013479a8
Author: Lukasz Lenart <lukaszlen...@apache.org>
AuthorDate: Sun Dec 12 17:47:06 2021 +0100

    WW-5129 Adds notes how to define dynamic attributes in second control 
generated by the tag
---
 source/tag-developers/doubleselect-tag.md         | 11 +++++++++++
 source/tag-developers/inputtransferselect-tag.md  | 11 +++++++++++
 source/tag-developers/optiontransferselect-tag.md | 11 +++++++++++
 3 files changed, 33 insertions(+)

diff --git a/source/tag-developers/doubleselect-tag.md 
b/source/tag-developers/doubleselect-tag.md
index a4a5c92..2504e88 100644
--- a/source/tag-developers/doubleselect-tag.md
+++ b/source/tag-developers/doubleselect-tag.md
@@ -22,6 +22,17 @@ and `doublelistvalue` to be null and not used.
 
 {% remote_file_content 
https://raw.githubusercontent.com/apache/struts/master/core/src/site/resources/tags/doubleselect-attributes.html
 %}
 
+## Dynamic attributes
+
+The tag supports dynamic attributes but if you want to add the attributes to 
the second control which is generated
+by the tag use the `second-` prefix as below:
+
+```jsp
+<s:doubleselect ... second-control-id="id2"/>
+```
+
+The prefix will be stripped while generating the second control. 
+
 ## Examples
 
 ```jsp
diff --git a/source/tag-developers/inputtransferselect-tag.md 
b/source/tag-developers/inputtransferselect-tag.md
index 007263e..2866c17 100644
--- a/source/tag-developers/inputtransferselect-tag.md
+++ b/source/tag-developers/inputtransferselect-tag.md
@@ -26,6 +26,17 @@ containing form submission.
 
 {% remote_file_content 
https://raw.githubusercontent.com/apache/struts/master/core/src/site/resources/tags/inputtransferselect-attributes.html
 %}
 
+## Dynamic attributes
+
+The tag supports dynamic attributes but if you want to add the attributes to 
the input control which is generated
+by the tag use the `input-` prefix as below:
+
+```jsp
+<s:inputtransferselect ... input-control-id="id2"/>
+```
+
+The prefix will be stripped while generating the second control.
+
 ## Example
 
 ```jsp
diff --git a/source/tag-developers/optiontransferselect-tag.md 
b/source/tag-developers/optiontransferselect-tag.md
index 6edf029..a0133f6 100644
--- a/source/tag-developers/optiontransferselect-tag.md
+++ b/source/tag-developers/optiontransferselect-tag.md
@@ -30,6 +30,17 @@ its containing form submission.
 
 {% remote_file_content 
https://raw.githubusercontent.com/apache/struts/master/core/src/site/resources/tags/optiontransferselect-attributes.html
 %}
 
+## Dynamic attributes
+
+The tag supports dynamic attributes but if you want to add the attributes to 
the right control which is generated
+by the tag use the `right-` prefix as below:
+
+```jsp
+<s:ioptiontransferselect ... right-control-id="id2"/>
+```
+
+The prefix will be stripped while generating the second control.
+
 ## Examples
 
 **Minimum example**

Reply via email to