8 Replies Latest reply on Jan 20, 2009 11:07 AM by scay

    rich progress bar

    scay

      Hi,

      I am trying to use multiple rich progress bars in the same page
      but sometimes some of them are just stopping and not sending any request to the server.
      If I refresh the page they continue processing.

      Has anyone had such a problem and is there any solution for this issue?

      Thanks in advance.

      Serif

        • 1. Re: rich progress bar
          ilya_shaikovsky

          put all the progress bars into the same queue.

          • 2. Re: rich progress bar
            scay

            I already done it, but nothing changed.

            • 3. Re: rich progress bar
              nbelaevski

              Can you please post related code: page, beans?.. Thank you in advance!

              • 4. Re: rich progress bar

                Which RF version do you use?
                Such problem was in 3.2.0 version, but it was already fixed in later version.

                • 5. Re: rich progress bar
                  scay

                  Hi Andrei,

                  Sorry for my late answer.
                  I am using richfaces 3.2.2.SR1.

                  • 6. Re: rich progress bar
                    scay

                    my jsf bean code is

                    public long getPercentage(){return percentage+=5;}
                    

                    percentage is a class variable.All progress bar items are calling same
                    method with different wrappers.

                    and jsf code sample is

                    <c:set var="interval" value="250"></c:set>
                    
                    <h:panelGrid width="100%" columns="2">
                     <rich:panel id="transactionHistory"
                     bodyClass="scroll fixedHeight100 noPadding">
                    
                     <f:facet name="header">
                     <h:outputText
                     value="#{BackofficeSession.langMap.view_player_transaction_history}" />
                     </f:facet>
                     <a4j:outputPanel style="text-align:left">
                     <rich:progressBar progressVar="percentage" style="color:blue"
                     value="#{ViewPlayerProfileBean.transactionHistoryPercentage}"
                     minValue="-1" maxValue="99" interval="#{interval}"
                     reRenderAfterComplete="transactionHistory" immediate="true"
                     rendered="#{percentage != -1}" ajaxSingle="true"
                     label="Processing Report[{value} %]" mode="ajax">
                     </rich:progressBar>
                     <h:outputFormat style="text-align:left" lang="html"
                     value="#{ViewPlayerProfileBean.transactionHistoryExport}"
                     escape="false" />
                    
                     </a4j:outputPanel>
                     </rich:panel>
                    
                     <rich:panel id="sessionHistory"
                     bodyClass="scroll fixedHeight100 noPadding">
                     <f:facet name="header">
                     <h:outputText
                     value="#{BackofficeSession.langMap.view_player_session_history}" />
                     </f:facet>
                     <a4j:outputPanel style="text-align:left">
                     <rich:progressBar progressVar="percentage" style="color:blue"
                     value="#{ViewPlayerProfileBean.sessionHistoryPercentage}"
                     minValue="-1" maxValue="99" interval="#{interval}"
                     reRenderAfterComplete="sessionHistory" immediate="true"
                     rendered="#{percentage != -1}" ajaxSingle="true"
                     label="Processing Report[{value} %]" mode="ajax">
                     </rich:progressBar>
                     <h:outputFormat style="text-align:left" lang="html"
                     value="#{ViewPlayerProfileBean.sessionHistoryExport}"
                     escape="false" />
                    
                     </a4j:outputPanel>
                     </rich:panel>
                    
                     <rich:panel id="balanceInformation"
                     bodyClass="scroll fixedHeight100 noPadding">
                     <f:facet name="header">
                     <h:outputText
                     value="#{BackofficeSession.langMap.view_player_balance_information}" />
                     </f:facet>
                     <a4j:outputPanel style="text-align:left">
                     <rich:progressBar progressVar="percentage" style="color:blue"
                     value="#{ViewPlayerProfileBean.balanceInformationPercentage}"
                     minValue="-1" maxValue="99" interval="#{interval}"
                     reRenderAfterComplete="balanceInformation" immediate="true"
                     rendered="#{percentage != -1}" ajaxSingle="true"
                     label="Processing Report[{value} %]" mode="ajax">
                     </rich:progressBar>
                     <h:outputFormat style="text-align:left" lang="html"
                     value="#{ViewPlayerProfileBean.balanceInformationExport}"
                     escape="false" />
                    
                     </a4j:outputPanel>
                     </rich:panel>
                    </h:panelGrid>
                    




                    • 7. Re: rich progress bar

                      Hello,

                      I tested your code on 3.3.0GA. All works fine, progress bar nevers stops polling.

                      Try please the last release.

                      • 8. Re: rich progress bar
                        scay

                        Hi Andrei,
                        Thank you for your time.
                        I will try it.