I cannot update the list in a <c:forEach>
by a backing bean.
I am working with PrimeFaces 5.0 and JSF 2.0.
This is my simplified JSF code:
<c:forEach var="i" items="#{dataset.columnsList}" varStatus="status">
<h:outputText value="#{dataset.columnsList.size()}"/>
<c:if test="${status.last}">
<h:outputText escape="false" value="#{status.count}" />
</c:if>
</c:forEach>
The code works well the first time. BUT When dataset.columnList change the field dataset.columnList.size() changes accordingly and is correct. Instead the status.count REMAINS TO THE OLD VALUE.
This fact seems be confined to <c:forEach>
only.
Is there someone who can help me please?
Many thanks.