title: Ajax update of datatable from a modal after filtering
body: <p>My question is very similar to this: 
  <a href="https://stackoverflow.com/q/14339855/934307">Ajax update doesn't work, when using filter on datatable (JSF, Primefaces)</a>.</p>
  
  <p>I have a <code>dataTable</code> with an "Open" button (a <code>commandButton</code>) for each entry/row in the table, on click of which, a <code>dialog</code> will open. I have a form in the dialog that I can update and save. Once I save my changes, I will get back on the <code>dataTable</code> closing the dialog I'm in, updating the results of the save that happened in the dialog on the entry in the table (whose "Open" was clicked to open the <code>dialog</code>).</p>
  
  <p>If I save the results from the <code>dialog</code> and use the <code>update</code> attribute to update the results of the save on the table entry, it works fine. However, if the <code>dataTable</code> was filtered in the first place and then the <code>dialog</code> was opened, then the <code>update</code> does not result in update of the table entry until I actually refresh/reload the page.</p>
  
  <p>The</p>
  
  <p><code>oncomplete="PF(':parentForm:dataTableVar').filter()"</code></p>
  
  <p>and </p>
  
  <p><code>oncomplete="PF(':parentForm:dataTableVar').clearFilters()"</code></p>
  
  <p>solutions recommended in the other question I referenced don't seem to have any effect in my case.</p>
  
  <p>Any suggestions?</p>
  
  <hr>
  
  <p>I use JSF v2.1.19 and PrimeFaces v5.1.</p>