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 Bug
    • Status: Closed
    • Priority: Major 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...

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development