2 Replies Latest reply on Sep 1, 2008 6:27 AM by lmk

    onExpired dont work yet with myfaces 1.2.2

    lmk

      hello;

      the jira below https://jira.jboss.org/jira/browse/RF-3102
      is resolved, but I get yet the exception:

      javax.faces.application.ViewExpiredException: /index.jsfThe expected view was not returned for the view identifier: /index.jsf
       at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:88)
       at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
       at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:148)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
       at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      


      Env: RF 3.2.2 CR1, myfaces 1.2.2 facelets 1.1.14.

      thanks a lot!

        • 1. Re: onExpired dont work yet with myfaces 1.2.2
          ilya_shaikovsky

          are you sure you using the same that Alexandr adviced in jira?

          • 2. Re: onExpired dont work yet with myfaces 1.2.2
            lmk

            yes of course!

            I add a context param and this for test!

            <a4j:region>
             <script type="text/javascript">
             A4J.AJAX.onError = function(req,status,message){
             window.alert("Custom onError handler "+message);
             }
            
             A4J.AJAX.onExpired = function(loc,expiredMsg){
             if(window.confirm("Custom onExpired handler "+expiredMsg+" for a location: "+loc)){
             return loc;
             } else {
             return false;
             }
             }
            </script>
             <a4j:form>
             <a4j:poll id="sessioncheck" interval="121000" reRender="sessioncheck" />
             </a4j:form>
             </a4j:region>