struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Hornbøll Hansen (JIRA) <>
Subject [jira] Created: (WW-1972) <s:optiontransferselect ... items not autoselected on submit.
Date Wed, 06 Jun 2007 15:26:26 GMT
<s:optiontransferselect ... items not autoselected on submit.

                 Key: WW-1972
             Project: Struts 2
          Issue Type: Bug
         Environment: WindowsXP, Java 1.6, Tomcat v5.5
            Reporter: 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:submit type="button" value="%{'add'}">
		<s:param name="label"><fmt:message key="global.label.add"/></s:param>

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.

View raw message