dataTable Update Row

Components, Ajax Framework, Utilities and More.
Post Reply
jhony.freire
Posts: 3
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: 8637
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
Beginners: https://jsf.zeef.com/bauke.scholtz

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests