Error updating row "onRowEditUpdate "

UI Components for JSF
Post Reply
pr0x1
Posts: 20
Joined: 15 Sep 2010, 04:15
Location: Cali-Colombia

09 Feb 2011, 16:07

Hi
I have a problem using onRowEditUpdate when i modified a row (cell cantidad) this value is copied into to the others fields cantidad, i need to see this change in the table.

Code: Select all

<p:outputPanel  id="pedPosTable">
		<p:dataTable value="#{pedido.posiciones}" var="pos"  	selection="#{pedido.selectPosiciones}" rowStyleClass="#{pos.bloqueada(pos.motivoRechazo)}"        rowEditListener="#{pedido.celdaEditada}" onRowEditUpdate="pedPosTable">  
					 
but, When the table is updated, this happens.

Before.
Image
Changing
Image
after.
Image

Somebody can help me..??
  • primefaces 2.2.RC2
    Mojarra 2.0.3 (FCS b03)
    Eclipse Helios
    Tomcat 7.0.2

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

09 Feb 2011, 17:34

It is an error to use the onRowEditUpdate attribute with a value of the table being edited or a parent of said table. The Table Render will ONLY render the edited row on edit, not the whole table. If you leave the onRowEditUpdate attribute off it should work as you expect. The onRowEditUpdate is for updating additional components besides the edited row. A common usage is to update h:message or p:growl.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

07 Jun 2011, 13:15

This is a known limitation right now, feel free to create an enhancement request.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 41 guests