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

select tag incorrectly evaluates property when bean contains 'getParameters()' method

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.2.3.1
    • Fix Version/s: 2.3.3
    • Component/s: Plugin - Tags
    • Labels:
      None

      Description

      When using select tag:
      <s:select list="elements" listKey="myKey" listValue="myValue"/>

      if the bean in elements collection has getParameters() method, then this method is called to evaluate bean's both myKey and myValue properties. Even if bean has them returning non-null values, they are ignored. This results in bean's toString() method being specified as both key and value.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lukaszlenart Lukasz Lenart
                Reporter:
                paul_ik Pavel Kazlou
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: