1 Reply Latest reply on Jun 30, 2007 12:20 AM by Chris Hane

    Restore View and HTTPSession Timeout

    Chris Hane Novice

      I have a generic search screen (standard input form) that displays the results on the "next" page using a . The ScopeType.EVENT is used on the SFSB.

      If the user hits the refresh button any time prior to the HTTPSession timeout, then the form is resubmitted and the search generated again (could display different results if the underlying data has been updated - which is what we want to happen).

      If the user leaves (for a time greater than the HTTPSession timeout) the results screen, comes back and hits the refresh button after the timeout, the "Find" screen is displayed again.

      I am using Trinidad 1.0, Myfaces 1.1, Jboss 4.0.x, Seam 1.2p1 with client side state saving.

      One of the first errors in the log is:

      2007-06-29 15:35:17,593 ERROR [STDERR] Jun 29, 2007 3:35:17 PM org.apache.myfaces.trinidadinternal.application.StateManagerImpl restoreView SEVERE: Could not find saved view state for token 7cad43c0

      Which is why I'm assuming it is the HTTPSession timeout and probably a JSF question rather than a Seam question, however, I was hoping someone else had run into this and had a workaround.

      Is there anything I can do so that the browser "refresh" will re-run the search and not show the Find screen?

      Thanks,
      Chris....

        • 1. Re: Restore View and HTTPSession Timeout
          Chris Hane Novice


          Just to be complete I'll answer my own post. What I really want is a RESTful style search/results function. I ended up adding pages.xml actions to the mix with embedded parameters and things work like a charm.

          I don't have to muck around with changing timeout limits and the next/previous buttons work in addition to a new "reload" button on the screen regardless of how long the screen/session has not had user interaction.

          Chris....