title: Primefaces, Trigger command button click oncomplete
body: <p>Is it possible to trigger a click on commandButton on <code>oncomplete</code> attribute of another commandButton?</p>
  
  <p>Like this :</p>
  
  <pre><code>&lt;p:commandButton value="save" action="#{myBean.save} oncomplete="trigger button2" /&gt;
  &lt;p:commandButton value="print" ajax="false" action="#{myBean.print}" widgetVar="button2" /&gt;
  </code></pre>
  
  <p>Second button is with attribute <code>ajax="false"</code>.</p>