[ 
https://issues.apache.org/struts/browse/WW-1972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42817
 ] 

Thorsten Schäfer commented on WW-1972:
--------------------------------------

It took me some time to understand that the items in the select box need to be 
selected in order to be submitted. This should be added to the documentation 
and it should be stated that you need to add <s:head/> to the header in order 
to get autoselect working.

> <s:optiontransferselect ... items not autoselected on submit.
> -------------------------------------------------------------
>
>                 Key: WW-1972
>                 URL: https://issues.apache.org/struts/browse/WW-1972
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>         Environment: WindowsXP, Java 1.6, Tomcat v5.5
>            Reporter: Jan Hornbøll Hansen
>            Assignee: Jan Hornbøll Hansen
>             Fix For: Future
>
>
> Have form like:
> <s:form action="addUser" method="get">
>       <s:textfield name="user.username"><s:param name="label"><fmt:message 
> key="user.label.username"/></s:param></s:textfield>
>       <s:password name="user.password"><s:param name="label"><fmt:message 
> key="user.label.password"/></s:param></s:password>
>       <s:optiontransferselect name="user.roles" list="user.roles" 
> listKey="id" listValue="name" doubleName="roleList" doubleList="roleList" 
> doubleListKey="id" doubleListValue="name">
>       </s:optiontransferselect>
>       <s:submit type="button" value="%{'add'}">
>               <s:param name="label"><fmt:message 
> key="global.label.add"/></s:param>
>       </s:submit>
> </s:form>
> AddUserAction implements ParameterAware. When form submitted only parameters 
> received are user.username & user.password. Tag reference for 
> <s:optiontransferselect> states that all values in both lists are supposed to 
> be selected before submit (so they'd also be added as parameters).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to