title: Update component at change of page on primefaces datagrid with pagination
body: <p>I have a datagrid with pagination. When I change the page I want to update some components in the page, but I don't know how to get the event. Some code:</p>
  
  <pre><code>&lt;p:panelGrid id="buttons"&gt;
    &lt;p:commandLink value="Link1" action="#{myBean.method1}" disabled="#{myBean.boolean1}" /&gt;
    &lt;p:commandLink value="Link2" action="#{myBean.method2}" disabled="#{myBean.boolean2}" /&gt;
  &lt;/p:panelGrid&gt;
  &lt;p:dataGrid var="myVar" paginator="true" value="#{myBean.listOfObjects}"&gt;
    ...
    ...
  &lt;/p:dataGrid&gt;
  </code></pre>
  
  <p>I want something like <code>update="buttons"</code> in the dataGrid, so when the page changes, update the buttons depending on <code>disabled=""</code> attribute of the buttons, is it possible?</p>
  
  <p>Greetings.</p>