dev@jsftemplating.java.net

Re: JSFTemplating: Iterator handler usage example

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Thu, 28 Sep 2006 12:23:11 -0700

Hi Priti,

Sorry I didn't get back to you earlier (I'm behind on my email, can you
tell?).

These handlers were written when I was creating components. When using
JSFTemplating to create components, you're working w/ a Renderer based
on LayoutElements, vs. a Page based on UIComponents (which may be
initially created w/ LayoutElements). This means that Renderers can much
more easily do looping... So I wrote these handlers to help iterate over
objects in the context of a loop. I have a forEach and while component
that I haven't checked in yet... I have to finish testing them. If I
provided them, then you'd have a loop in which these handlers would be
more useful.

If this is something that you need, please file an RFE and I'll try to
bump it up in priority. I can't promise when I can get to it, though. If
you want to try to take on the feature, I'd be happy to send you what I
have. ;)

Ken

Priti Tiwary wrote:
> Hi Ken,
> I see that there are handlers getIterator , iteratorHasNext and
> iteratorNext in jsftemplating project to iterate over list.
> Using that requires looping, so if i can see a working example of how to
> use it, it will be helpful
> priti
>
>