Note that there are some explanatory texts on larger screens.

plurals
  1. POPrimefaces DataTable p:rowEditor how to retrieve editing status?
    primarykey
    data
    text
    <p>PF 3.5.10, Mojarra 2.1.21, JBoss 7.1.1, PE 7.1, Omnifaces 1.5</p> <p>I want to use datatable row editing in a p:Dialog. I have a datatable with a row editing in a Dialog. (Showcase: <a href="http://www.primefaces.org/showcase/ui/datatableRowEditing.jsf" rel="nofollow">http://www.primefaces.org/showcase/ui/datatableRowEditing.jsf</a>) If I click "OK" on the Dialog the changes should be saved, and if I click "Cancel" the changes will be dismissed. If row editing for a row is activated and I can change the values in a row, and then I click "Ok" on a Dialog, the active changes in a row will be lost. How can I retrieve an actual status of editing ? How can I know if a row in a datatable is currently edited ? If i know that I can warn User that the changes will be lost.</p> <p>Edit: link to PF sources <a href="http://grepcode.com/file/repository.primefaces.org/org.primefaces/primefaces/4.0-20130705.184420-2/org/primefaces/component/datatable/DataTable.java?av=f" rel="nofollow">Grepcode: PF sources isEditingRow()</a></p> <pre><code>&lt;p:dialog&gt; &lt;h:form&gt; &lt;p:tabView cache="false" id=.. binding=..&gt; &lt;p:tab&gt; &lt;p:dataTable binding=.. id=... widgetVar=... var=.. &gt; &lt;/p:dataTable&gt; &lt;/p:tab&gt; &lt;/p:tabView&gt; &lt;p:commandButton process="@form" action="myBean.listener()" value="OK" update="@form" onstart="anotherTable.filter()" /&gt; &lt;/h:form&gt; &lt;/p:dialog&gt; </code></pre> <p>Edit: I accepted the answer because I implemented the required feature myself. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload