I'm new to JSF and facelets. I was wondering why am I not getting the expected result? I'm using JSF 1.2, with facelets 1.1.14. I'm expecting that the session variable 'indx' to hold the total number of grandchildren after the loop.
Instead its always 0. What am I doing wrong? Here is my code...
<h:form>
<c:set var="indx" value="0" scope="session"></c:set>
<ui:repeat value="#{grandparentholder.grandparents}" var="grandparent">
<ui:repeat value="#{grandparent.parents}" var="parent">
<ui:repeat value="#{parent.child}" var="child">
<c:set var="indx" value="#{indx+1}" scope="session"></c:set>
</ui:repeat>
</ui:repeat>
</ui:repeat>
</h:form>