0 Replies Latest reply on Nov 11, 2010 2:58 PM by jabailo

    Using the a4j timeout event

    jabailo

      I configured a timeout in web.xml and now want to be able to redirect to a specific page once timeout is reached.

       

      From this article I am told I can use this in my jsp/jsf page:

       

      http://stackoverflow.com/questions/1438351/redirecting-on-session-timeout-in-jsf-richfaces-facelet

       

       

      <a4j:region>
      <script language="javascript">
      A4J.AJAX.onExpired = function(loc, expiredMsg){
      alert('expired!');
      window.location = "/login.jsf";
      }
      </script>
      </a4j:region>

       

      This code doesn't make sense to me (or Eclipse) and it throws an error when running JBoss.

      Can someone confirm what is the proper way in Richfaces to handle a timeout event?