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

          Jeff Butler made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          Fix Version/s 2.1.6 [ 12310151 ]
          Fix Version/s 2.2.0 [ 12310720 ]
          Jeff Butler made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Jeff Butler made changes -
          Assignee Brandon Goodin [ bgoodin ] Jeff Butler [ jgbutler ]
          Paul McCormick made changes -
          Field Original Value New Value
          Link This issue is a clone of IBATIS-131 [ IBATIS-131 ]
          Paul McCormick created 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