title: richfaces progressBar polling
body: <p>I've got a progressBar component defined as the following on my webpage:</p>
  
  <pre><code>&lt;rich:modalPanel id="pb1Panel"&gt;
      &lt;rich:progressBar id="pb1" oncomplete="javascript:#{myBean.handleProgressEvent()} closeProgressModalPanel()" value="#{pb1Listener.percentageComplete}" label="#{pb1Listener.percentageComplete} %" minValue="1" maxValue="100" limitToList="true" timeout="3200" interval="1400" enabled="false"/&gt;
  &lt;/rich:modalPanel&gt;
  </code></pre>
  
  <p>and a button:</p>
  
  <pre><code>&lt;a4j:commandButton id="actButton" value="action" action="#{myBean.performAction}" immediate="true" ajaxSingle="true" onclick="javascript:Richfaces.showModalPanel('pb1Panel');" reRender="pb1Panel"&gt;
      &lt;a4j:support event="onClick" value="#{rich:component('pb1')}.enable()" reRender="pb1" /&gt;
  &lt;/a4j:commandButton&gt;
  </code></pre>
  
  <p>which doesn't work. However if I take out the </p>
  
  <pre><code>....
     enabled="false"/&gt;
  ....
  </code></pre>
  
  <p>from the progress bar, and the  element from the button, everything seems to work just fine.</p>
  
  <p>Any suggestion why it's not working? I'm setting enabled="false" initially because I do not want the polling to start unless the button was clicked (to reduce unnecessary polling).</p>
  
  <p>The system is building on richfaces/seam.</p>
  
  <p>Thanks!</p>