title: Primefaces blockUI stops working after ajax update
body: <p>I am trying to create a datatable that displays a blockUI whenever it is busy, and I have been mostly successful.  It now grays out and shows "Loading..." whenever I click either of two commandButtons, sort the datatable by clicking on a header, or page through the datatable.  You can see the code for it below.</p>
  
  <p>The problem is that after I have used one of the commandButtons (which runs an ajax update on the blocked element), subsequent actions do not trigger the blockUI (until I refresh the page).  For example:</p>
  
  <ul>
  <li>Load page</li>
  <li>Click a datatable header - blockUI appears until table is finished sorting</li>
  <li>Click one of the datatable page navigation buttons - blockUI appears until the page is loaded</li>
  <li><strong>Click one of the commandButtons</strong> - blockUI appears until the button's actionListener has finished</li>
  <li>Click a datatable header - table sorts, but blockUI does not appear.</li>
  <li>Click one of the datatable page navigation buttons - page loads, but blockUI does not appear</li>
  <li>Click one of the commandButtons - actionListener runs and table updates, but blockUI does not appear</li>
  <li><strong>Reload the page</strong> - everything works properly again</li>
  </ul>
  
  <p>Changing the commandButtons' update="" attribute to ajax="false" causes the sorting/paging to always display the blockUI, but the commandButtons to never display the blockUI.</p>
  
  <p>Any ideas?</p>
  
  <pre><code>&lt;div class="buttonDiv"&gt;
      &lt;p:commandButton ... update="resultsPanel" id="submitButton" ... /&gt;
      ...
      &lt;p:commandButton ... update="resultsPanel" id="resetScenarioButton" ... /&gt;
  &lt;/div&gt;
  &lt;p:panel header="Results Grid" id="resultsPanel"&gt;
      ...
      &lt;p:dataTable ... id="VAResults" ... &gt;
          ...
      &lt;/p:dataTable&gt;
      ....
  &lt;/p:panel&gt;
  &lt;p:blockUI block="resultsPanel" trigger="submitButton, resetScenarioButton, VAResults"&gt;
      Loading...
  &lt;/p:blockUI&gt;
  </code></pre>