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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.6
    • Core
    • None
    • 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

              bgoodin Brandon Goodin
              n.beekman Niels Beekman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: