0 Replies Latest reply on Nov 8, 2012 9:54 AM by ibstmt

    Handling timeouts

    ibstmt Newbie

      RF 3.3.3, Seam, Hibernate.  I am trying to create a graceful way to handle timeouts. My main page has a number of a4j:commandButtons with a4j:support, to display a modal panel. What happens is that once the session times out, if the user clicks the button, the modal panel appears, but there is no data. Ideally, I would like to redirect the user to an error page or back to the login page.

       

      I can't figure out how to make this work, and I've done quite a bit of Googling.

       

      My pages.xml does have an exception handler for javax.faces.application.ViewExpiredException, but that doesn't seem to come into play.

       

      I also set ajax4jsf.handleViewExpiredOnClient to true in web.xml. And, I tried adding the A4J.AJAX.onExpired = function(loc, expiredMsg) code as per Richfaces documentation.  But obviously I am missing something important.

       

      Has anyone out there solved this problem in their application?