2 Replies Latest reply on Aug 5, 2007 3:33 AM by Kristoffer Carnmarker

    Disabling "View state couldn't be restored" message

    Kristoffer Carnmarker Newbie


      When the session has timed out, and a user uses an Ajax enabled component, a JS popup with the message "View state couldn't be restored..." is shown to the user.

      I need to disable that, as the user has no idea what that means, and if the user chooses OK, then an uncaught Seam exception is thrown. If the user chooses Cancel, then the user is presented with the correct page (which in my case is the login page). So, I would like to have the "Cancel" functionality executed automatically in these cases?

      How can I accomplish this?