ajax update of several elements by ID's

UI Components for JSF
Post Reply
User avatar
sergionni
Posts: 10
Joined: 16 Dec 2010, 14:25
Location: Kiev
Contact:

16 Dec 2010, 14:56

Hi dear Primefaces community.

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"/>	
Is it normal behaviour or I miss some parameters?

configs:
jsf 2.0
primefaces-2.2.RC2.jar
apache-tomcat-7.0.4
jdk1.6.0_22

Thank you for assistance.
--
Sergei
--
Primefaces 2.2.1
JSF 2.0
Tomcat 7.0.12

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 47 guests