0 Replies Latest reply on Jul 21, 2011 8:57 AM by Johann Igzorn

    a4j:status: 'onstop' triggers before ajax-request is finished

    Johann Igzorn Newbie

      Hi there!

       

      I have a commandButton with an action method that takes quite a long time to finish.

      Therefore I use a4j:status to display a 'please wait' panel.

      Problem is, after about an hour the panel disappears without the action method being finished.

       

      Here's a code example:

       

      jsf:

                     <a4j:region>
                          <a4j:status id="wait_status"
                                      onstart="Richfaces.showModalPanel('ajaxLoadingModalBox')"
                                      onstop="Richfaces.hideModalPanel('ajaxLoadingModalBox')">

                          </a4j:status>

       

                          <rich:modalPanel id="ajaxLoadingModalBox">

                                   <h:outputText value="please wait..."></h:outputText>
                           </rich:modalPanel>
                      </a4j:region>

                    

                      <a4j:commandButton value="Go" action="${SomeBean.doNothing}" status="wait_status"/>

       

      SomeBean.java:

                     public void doNothing() throws Exception{

                          Thread.sleep(10800000);

                     }

       

       

      Tested with both Firefox and IE using Richfaces 3.3.3 final.

      Thanks for helping!