Have following problem with ajax update of elements by id's at same time.
If elements on page goes one by one ,that ajax update performs ok:
Code: Select all
<ui:repeat value="#{showProducts.inCart}" var="cart">
<td><p:spinner min="0" value="#{cart.count}" immediate="true"><p:ajax process="@this" update="count,subTotal"/></p:spinner></td>
<td><h:outputText value="#{cart.totalPrice}" id="count"/></td>
<h:outputText value="#{showProducts.subTotal}" id="subTotal"/>
</ui:repeat>
Here element with id "count" goes first,then element with id "subtotal" goes second.
In case,elements on page are not strictly one by one,that second element with "subtotal" id is not updated:
Code: Select all
<ui:repeat value="#{showProducts.inCart}" var="cart">
<td><p:spinner min="0" value="#{cart.count}" immediate="true"><p:ajax process="@this" update="count,subTotal"/></p:spinner></td>
<td><h:outputText value="#{cart.totalPrice}" id="count"/></td>
<td><h:outputText value="#{cart.place}" /></td>
</ui:repeat>
<h:outputText value="#{showProducts.subTotal}" id="subTotal"/>
configs:
jsf 2.0
primefaces-2.2.RC2.jar
apache-tomcat-7.0.4
jdk1.6.0_22
Thank you for assistance.
--
Sergei