7 Replies Latest reply on Oct 9, 2008 9:00 AM by Andrei Markavtsov

    progress bar pooling and

    Ivan Elistratov Newbie

      Hi.
      I have a strange problem with "enabled" attribute of progress bar.
      This attribute is successfuly setted to "true" when I start my process.
      But when process is finished and in backing bean corresponding property is setted to false,
      this change is not propagated to the "enabled" attribute.
      So, pooling process is never stopped :(

      My page structure is following

       data panel
       ....
       <a4j:outputPanel id="progressPanel" layout="block">
       <div class="left">
       <a4j:commandButton value="Start" disabled="#{pageBean.processLaunched}" action="#{pageBean.startProcess}"
       reRender="progressPanel, dataPanel" />
       </div>
       <div class="right">
       <h:panelGrid id="progressGrid" rendered="#{pageBean.processLaunched}" columns="2">
       <h:outputText value="Progress status:" />
      
       <rich:progressBar value="#{pageBean.processedRows}" interval="5000"
       label="#{pageBean.processedPercent} %"
       minValue="-1" maxValue="#{pageBean.declaredRows}"
       enabled="#{pageBean.processLaunched}"
       reRenderAfterComplete="progressPanel, dataPanel">
       </rich:progressBar>
       </h:panelGrid>
       </div>
       </a4j:outputPanel>
      


      This block and panel with data are surrounded by <a4j:form> tag. When I click on start button, startProcess action is fired and boolean "processLaunched" property in pageBean is setted to true. After process completion this property contains "false" value (I see this by means of logging property value to the log file from getter method) but pooling is continued and button is disabled :(

      What do you think about this "strangeness"?
      Thanks.

      P.S. I use JSF 1.2_07 and Facelets 1.1.14. Backing bean has "session" scope.