how about using a stateless searchpage?
that way you should not get a page expired.

Maurice

On Thu, Feb 21, 2008 at 1:14 AM, Chris Lintz
<[EMAIL PROTECTED]> wrote:
>
>  Hi,
>  So i have searched the forums regarding overriding
>  RequestCycle#onRuntimeException(Page page,RuntimeException e) .  It seems we
>  are completely stuck because there is no way to determine what page threw a
>  PageExpiredException .
>
>  What I want to do is this:
>
>  When my SearchPage expires, and the user again clicks a button search, they
>  are immediately returned to the SearchPage potentially with any request
>  parameters the user searched on. It seems the only way to get a custom Page
>  when an PageExpiredException is thrown is to override onRuntimeException and
>  return the custom page.  Unfortunately the page is null when passed into
>  onRuntimeException (which makes sense because there is no longer a valid
>  session).
>
>  How can i accomplish this within the framework?  I hope we can avoid a hack
>  like setting a cookie that represents the current page upon every page
>  request. (atleast it seems to me there should be a framework solution for
>  this).
>
>  thanks for any ideas
>
>
>  chris
>
>
>  --
>  View this message in context: 
> http://www.nabble.com/Need-to-redirect-to-the-current-page-upon-a-page-expire---how---tp15602103p15602103.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to