ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niels Beekman" <ni...@wis.nl>
Subject RE: Iterate problem
Date Fri, 20 May 2005 06:53:03 GMT

Latest one, 2.1.0.
I looked in ConditionalTagHandler.java and it uses some Probe-instance
to find the property, as soon as this Probe encounters '[' it tries to
parse an index instead of checking the position of ']'.

Hope this helps,

Niels Beekman

-----Original Message-----
From: Brandon Goodin [mailto:brandon.goodin@gmail.com] 
Sent: donderdag 19 mei 2005 23:09
To: ibatis-user-java@incubator.apache.org
Subject: Re: Iterate problem

What version of ibatis are you using?

On 5/19/05, Niels Beekman <niels@wis.nl> wrote:
> Hi,
> I'm using the iterate-tag to loop a list, but I can't find a way to
> the current element in attributes of inner tags, when I try the
> following:
> <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 in
> my opinion it should use the current element (the []-notation works
> within inner tags), when I supply an index it works just fine...
> Thx,
> Niels Beekman

View raw message