Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-1711

select tag: current option is not selected if actual value to check is no String (aka: nameValue resolves to type other than String)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.5
    • 2.0.7
    • Plugin - Tags
    • None

    Description

      If the nameValue parameter for UIBean Components resolves to types other than String, the correct value does not get selected.
      Example:
      <s:select label="%

      {getText('task.priority')}

      " name="task.priority.id" value="%

      {task.priority.id.toString()}

      " list="priorities" listKey="id" listValue="name" />
      If task.priority.id has type String, value gets seleted. If it a a Long (or whatever), it does not get selected.

      Attachments

        1. Select-11.txt
          0.3 kB
          Stuart Piltch
        2. Select-11.txt
          0.3 kB
          Stuart Piltch
        3. 1711-testInt.patch
          4 kB
          Stuart Piltch
        4. 1711-test.patch
          2 kB
          Stuart Piltch
        5. 1711-fix.patch
          0.7 kB
          Stuart Piltch

        Issue Links

          Activity

            People

              rainerh Rainer Hermanns
              rgielen René Gielen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: