struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhaarat Sharma <bhaara...@gmail.com>
Subject Re: why doesnt iterator tag provide 'next'
Date Sun, 31 May 2009 03:33:14 GMT
I have not started on it yet.  Dave, how would you do it with OGNL? can we
write our own?

I have something like this in mind

<s:iteratorNext value = "myList">
    <s:property value="someMethodFirstItem"/>

    <s:property value="someMethodSecondItem" nextNum="1"/>

    <s:property value="someMethodThirdItem" nextNum="2"/>

</s:iteratorNext>

...how would you do it?

On Sat, May 30, 2009 at 8:34 PM, Dave Newton <newton.dave@yahoo.com> wrote:

> Bhaarat Sharma wrote:
>
>> This is not a 'break' tag...this would work same as in iterator tag BUT
>> would also have a functionality where the user can go to the next element
>> within the iteration.
>>
>
> IMO depending on ordering within a collection is an accident waiting to
> happen, but the functionality itself shouldn't be much more difficult.
>
> FWIW, this functionality could most likely be achieved via OGNL and a
> couple of collection operations or, less cleanly, via subset/decider.
>
> A break tag would be nice, though.
>
>
> Dave
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message