dataTable Update Row

UI Components for JSF
Post Reply
Posts: 5
Joined: 30 Sep 2017, 22:36

12 Oct 2017, 17:38

it is possible to update a row of the datatable.

after updating the data with a dialog, I want to update the selected row of the datatable.

If I update the form: datatable the focus moves to the first record and I do not want to lose it.

It's possible?

Code: Select all

<h:form id="form">
 <p:dataTable id="tbl" var="f"..... >
 <p:column headerText="Ver" style="text-align: center" width="2%">
             <p:commandButton   oncomplete="PF('finDialog').show()" actionListener="#{bean(f) }" update=":updateDialog" process="@this"/>
<p:dialog id="Detail" >
<h:form id="formDetail">
<p:commandButton value="Close" onclick="PF('finDialog').hide();" update="form:tbl"  />
Thx for Help.
PrimeFaces 6.0
JSF 2.2
Glasfish 4 server

Expert Member
Posts: 9116
Joined: 17 Jun 2010, 13:34
Location: Netherlands

17 Oct 2017, 12:15

Ronald van Kuijk
PrimeFaces 6.1, PrimeFaces plus 0.0.2 | JbossWildfly 10.1| Mojarra 2.2.13
Fedora 61, Firefox 'most recent'
Read the forum posting rules

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: bhonaker and 15 guests