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>