[ http://issues.apache.org/jira/browse/IBATIS-131?page=comments#action_12319394 ]
Waddle Fung commented on IBATIS-131: ------------------------------------ I have also tried the latest version 2.1.5.582 and got an exception NumberFormatException. My defintion is listed below. Thanks. <select id="getApplicationByCriteria" resultMap="result"> select prh_application.application_no, prh_application.application_stage, prh_application.application_status, prh_application.district_code, prh_application.family_size, prh_application.registration_date, prh_application.g_equivalent_date, prh_application.expected_child_number, prh_application.expected_delivery_date, prh_application.elderly_indicator from prh_application where prh_application.application_no like #applicationPrefix# and prh_application.district_code = #districtCode# <iterate prepend="AND" property="familySize" open="(" close=")" conjunction="OR"> <isEqual property="familySize[]" compareValue="10"> prh_application.family_size >= #familySize[]# </isEqual> <isNotEqual property="familySize[]" compareValue="10"> prh_application.family_size = #familySize[]# </isNotEqual> </iterate> </select> > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira