0 Replies Latest reply on Dec 3, 2009 4:03 AM by gamba

    ViewExpiredException using rich:progressBar

    gamba

      Hi,

      I'm getting this Exception when progress comes to an end and the initial button should be shown again.
      The numberOfSessionInViews param is configured to 25. The requests for the currentValue are limited to 2 or 3,
      so that should not be the root cause. I used the code from the demo page.

      <h:form>
       <a4j:outputPanel id="progressPanel">
       <rich:progressBar id="scanProgressBar" value="#{scanProgressBarBean.currentValue}" interval="500"
       enabled="#{scanProgressBarBean.enabled}" reRenderAfterComplete="progressPanel" minValue="-1" maxValue="10">
       <h:outputText value="Scanned pages {value}"/>
       <f:facet name="initial">
       <a4j:commandButton action="#{scanProgressBarBean.starteScanProzess}" value="#{msg.btn_starteScanprozess}"
       styleClass="hmgButton120" reRender="progressPanel" rendered="#{scanProgressBarBean.buttonRendered}" />
       </f:facet>
       <f:facet name="complete">
       <a4j:commandButton action="#{scanProgressBarBean.starteScanProzess}" value="#{msg.btn_starteScanprozess}"
       styleClass="hmgButton120" reRender="progressPanel" rendered="#{scanProgressBarBean.buttonRendered}" />
       </f:facet>
       </rich:progressBar>
       </a4j:outputPanel>
      </h:form>
      


      starteScanProzess() and getCurrentValue() are the same as in the example code, only with limited duration.

      I'm using RichFaces 3.3.2.SR1 in Jboss 4.2.3 in portal 2.7.2. The bridge-version is 1.0.0.CR3

      Thx,
      Gamba