title: Execute p:commandLink action before onclick event?
body: <p>I have a <code>p:commandLink</code> which launches a dialog on click. Further there is an action, which must be executed <em>before</em> launching the dialog, as the dialog depends on the content the action populates.</p>
  
  <p>How can I run the action before launching the popup <em>without</em> javascript?</p>
  
  <pre><code>&lt;p:commandLink action="#{service.computePrefetch(_var)}" onclick="dlg.show()"/&gt;
  </code></pre>