Struts 2
  1. Struts 2
  2. WW-1972

<s:optiontransferselect ... items not autoselected on submit.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: Plugin - Dojo Tags
    • Labels:
      None
    • Environment:

      WindowsXP, Java 1.6, Tomcat v5.5

      Description

      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).

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jan Hornbøll Hansen
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development