I am experiencing multi selection boxes in Struts 2.  I have a list of 
checkboxes in a table that spreads to more than one page.  I am using the 
displaytag for the table.  Here is my attempt
 
 
<s:form name="grantResults" >        
<display:table name="test" id="grants" ...>
  <display:column title="Select" >
  <s:checkbox name="selectedGrants" fieldValue="${grants.id}" />
  </display:column>   
   
  <display:column ... />
</display:table>
</s:form>
 
In my action class, I defined selectedGrants as
    private String[] selectedGrants;

I can get the selection from the action, and selections are saved when user 
page and sort the table.  However, the checkbox does not show the selection 
that is saved in the session.

I searched the archive and found this thread that addressed the issue I have.  

http://marc.info/?l=struts-user&m=117804988331238&w=2

So I tried to convert my checkbox to checkboxlist.  However, I could not get 
the list and listKey attributes right. 

Please help.  Thank you,

Jane

 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to