struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Hornbøll Hansen (JIRA) <j...@apache.org>
Subject [jira] Work stopped: (WW-1972) <s:optiontransferselect ... items not autoselected on submit.
Date Thu, 07 Jun 2007 14:46:28 GMT

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

Work on WW-1972 stopped by Jan Hornbøll Hansen.

> <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
>         Environment: WindowsXP, Java 1.6, Tomcat v5.5
>            Reporter: Jan Hornbøll Hansen
>            Assignee: Jan Hornbøll Hansen
>
> 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.


Mime
View raw message