dataTable Update Row

UI Components for JSF
Post Reply
jhony.freire
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:column>
 
 </datatable>
  
</form 
....
....
<p:dialog id="Detail" >
<h:form id="formDetail">
...
...
<p:commandButton value="Close" onclick="PF('finDialog').hide();" update="form:tbl"  />
</form>
</dialog>
 
Thx for Help.
PrimeFaces 6.0
JSF 2.2
Glasfish 4 server

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

17 Oct 2017, 12:15


Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests