Struts 2.0.11
Nope, no documentation just many attempts until we got it to work.
The class looks like this:
public class OurAction extends ActionSupport implements SessionAware,
ParameterAware, ParameterNameAware {
.....
private String[] selectedGroup;
.....
public void setSelectedGroup(String[] selectedGroup) {
this.selectedGroup = selectedGroup;
}
The JSP:
<s:form action="ourAction" id="ourForm">
.....
<s:iterator id="rowData" value="myList">
.....
<s:checkbox name="selectedGroup"
fieldValue="%{id}_%{nextCell.label}" theme="simple"/>
.....
</s:iterator>
.....
</s:form>
The mapping in struts.xml
<action name="*ourAction" class="package.ourAction" method="{1}">
<interceptor-ref name="defaultStack"/>
.....
results set here
.....
</action>
--
View this message in context:
http://www.nabble.com/s2-%3A-checkbox-and-checkboxlist-%3A-dynamic-lists-tp14760993p14812186.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]