user884424
user884424

Reputation: 583

primefaces update table row after cell edit

I am using primefaces datatbale cell editing , when I edit the a cell the next column of that row should display a calculated value which is calculated from this cell value,I am using celleditEvent to invoke a listener using

Please advice in my listener is there a way to retrieve the id of the tr and add to request context to update this row. Please advice.

public void onCellEdit(CellEditEvent  cellEditEvent){

    RequestContext.getCurrentInstance().update(((DataTable)cellEditEvent.getSource()).getClientId());
}

in this event method it it possible to retrieve html id of the tr element containing this cell.

Upvotes: 0

Views: 1150

Answers (1)

David H.
David H.

Reputation: 963

Try to use OmniFaces with PrimeFaces

Take a look at this : http://showcase.omnifaces.org/utils/Ajax

Upvotes: 0

Related Questions