ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Goodin (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Commented: (IBATIS-131) Fix use of list[]-notation in propertyattributes of dynamic tags
Date Sat, 06 Aug 2005 19:20:35 GMT
    [ http://issues.apache.org/jira/browse/IBATIS-131?page=comments#action_12317876 ] 

Brandon Goodin commented on IBATIS-131:

I'll check into this and post a fix. I don't have good access to the SVN right now. So, someone
else will need to post the fix once i put it up. I was pretty sure the unit tests covered
the afformentioned scenarios. I'll ask an obvious and stupid question. Please don't be offended.
Are you using the latest and greatest iBatis release?

> Fix use of list[]-notation in propertyattributes of dynamic tags
> ----------------------------------------------------------------
>          Key: IBATIS-131
>          URL: http://issues.apache.org/jira/browse/IBATIS-131
>      Project: iBatis for Java
>         Type: Bug
>   Components: SQL Maps
>  Environment: All are affected.
>     Reporter: Niels Beekman
>     Assignee: Brandon Goodin
>      Fix For: 2.1.5

> 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...

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message