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.
Comments
Post a Comment