jsf - c:forEach items not updated from backing bean -


i cannot update list in <c:foreach> backing bean. working primefaces 5.0 , jsf 2.0.

this 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 first time. when dataset.columnlist change field dataset.columnlist.size() changes accordingly , correct. instead status.count remains old value.

this fact seems confined <c:foreach> only.

is there can me please?

many thanks.

when changing dataset.columnlist, make sure page refreshed. can doing page submit button, or use ajax submit partially page (<f:ajax>). know using c tag obsolete , can use <ui:repeat> instead of <c:foreach>


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -