title: Stop call with progressBar Primefaces
body: <p>Cancelling the <code>progressBar</code> call after sharing 100%?
  I've tried to do so:</p>
  
  <pre><code>public void doJs() {
      RequestContext ctx = RequestContext.getCurrentInstance();
      context.execute("progress.cancel();");
  }
  </code></pre>
  
  <p>Or call the <code>PF('progress').cancel();</code>, but without success. 
  Follow my <code>progressBar</code>.</p>
  
  <pre><code>&lt;p:progressBar widgetVar="progress" ajax="true" global="false"
                      value="#{usarLayoutBean.porcentagem}" labelTemplate="{value}%"
                      styleClass="animated"&gt;
      &lt;p:ajax event="complete" listener="#{usarLayoutBean.doJs()}"/&gt;
  &lt;/p:progressBar&gt;
  </code></pre>