webtier@glassfish.java.net

Re: [webtier] JSF 2.0: ui:repeat vs. c:forEach?

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Mon, 08 Feb 2010 08:06:02 -0800

On 2/7/10 2:19 PM, webtier_at_javadesktop.org wrote:
> In JSF 1.x, c:forEach and c:if didn't play well when mixed with JSF tags due to the JSF lifecycle or differences in EL evaluation. For example, c:forEach and c:if wouldn't see the value of the local variable ("var") in h:dataTable.
>
> I was under the impression that things are much better in JSF 2.0, but couldn't find details. Can someone point me to a place that explains how the JSTL tags play with JSF 2.0?
>
There really isn't any change in behavior.

c:forEach/c:if execute during tree creation time while ui:repeat
executes during the render phase.

There's a very good blog detailing the differences here:
http://www.ilikespam.com/blog/c:foreach-vs-ui:repeat-in-facelets
> Thanks!
>
> - Marty
> JSF 2.0 Tutorial: http://www.coreservlets.com/JSF-Tutorial/jsf2/
> [Message sent by forum member 'martyhall' (hall_at_coreservlets.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=385337
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>