Uploaded image for project: 'iBatis for Java [READ ONLY]'
  1. iBatis for Java [READ ONLY]
  2. IBATIS-293

Fix use of list[]-notation in propertyattributes of dynamic tags

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: Core
    • Labels:
      None
    • Environment:
      All are affected.

      Description

      When using an iterate-tag to loop a list, one cannot point to the current element in attributes of inner tags, for example, the following fails:

      <iterate property="myList">
      <isEqual property="myList[].someProperty" compareValue="true">
      $myList[].anotherProperty$
      </isEqual>
      </iterate>

      iBATIS tries to index the property myList with an empty string, but it should use the current element (the []-notation works fine within inner tags), when an index is supplied it works just fine...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jgbutler Jeff Butler
                Reporter:
                fechin Paul McCormick
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: