title: Primefaces show animation when button clicked
body: <p>I have the following button and panel in primefaces:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;p:commandButton value="Submit"
      ajax="true" actionListener="#{myBean.search}" update="resultPanel" oncomplete="panelwv.show();"&gt;
  &lt;/p:commandButton&gt;
  
  &lt;p:panel widgetVar="panelwv" visible="false" closable="true"
      toggleable="true" id="resultPanel"&gt;
  </code></pre>
  
  <p>I want while the myBean.search executes, an animation appears on the screen.
  Any help?
  Thanks!!</p>