jsf 2 - Alternative for a4j:repeat in JSF 2.0 -


i migrating application jsf 1.2 jsf 2.0 . have a4j:repeat tag grid in jsf 1.2. aware a4j:repeat not work in jsf 2.0, need alternative repeat tag. shall go ui:repeat (facelets tag) or c:foreach (jsf core)?

the <a4j:repeat> has same lifecycle <ui:repeat> (ui component runs during view render time). so, when replacing 1 on 1, <ui:repeat> right choice.

the <c:foreach> tag handler runs during view build time. not appear in jsf component tree, participates in building it.

the difference observed , understood when used inside <h:panelgrid>. <ui:repeat> creates single cell re-rendered multiple times. <c:foreach> creates multiple cells each rendered once.

see also:


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -