The runs during view build time (to generate the JSF component tree) while the runs during view render time (to generate the HTML output), which is after the view build time. Use instead of , it runs during view build time as well.
See also:
- c:forEach vs ui:repeat in Facelets