File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes <s:optiontransferselect > items not autoselected on submit. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "<s:optiontransferselect > items not autoselected on submit." Watch "<s:optiontransferselect > items not autoselected on submit." New topic
Author

<s:optiontransferselect > items not autoselected on submit.

prasanthh reddy
Greenhorn

Joined: Sep 01, 2008
Posts: 8
Hi All,

my code is as follows

<s:form action="addUser" method="get">

<sptiontransferselect name="user.roles" list="user.roles" listKey="id" listValue="name" doubleName="roleList" doubleList="roleList" doubleListKey="id" doubleListValue="name" allowAddAllToLeft="false" allowAddAllToRight="false" allowAddToLeft="true" allowAddToRight="true" allowSelectAll="false" allowUpDownOnLeft="false" allowUpDownOnRight="false"
buttonCssClass="ButtonSmall" >

</sptiontransferselect>

<s:submit type="button" value="%{'add'}">

</s:submit>
</s:form>

When form submitted items from the list are not autoselected on submit.

How can I get both the lists to my action class Please let me know....

Thanks
 
jQuery in Action, 2nd edition
 
subject: <s:optiontransferselect > items not autoselected on submit.
 
Similar Threads
problem with validation and tag s:optiontransferselect in Struts2
S2: caching problem,-user clicks on a link and then back w/ broweser data is lost
How to limit selections with s:optiontransferselect & struts 2.1
s:optiontransferselect odd rendering on submit to action
Struts 2 checkboxlist error - list key could not be resolved