once a page has expired there is really no way to know what it was..thats kinda the point of stateful components
eg if you have created your page like this: setresponsepage(new userdetailspage(user, org)); and you get a page expired error, even if you somehow kept track of the fact that it was a userdetailspage you still wouldnt know what the user and org params it was created with... a compromise is a bookmarkable page mounted with a hybrid url coding strategy -igor On Thu, Feb 21, 2008 at 7:39 AM, Chris Lintz <[EMAIL PROTECTED]> wrote: > > That would work, except the search results do contain some AJAX > functionality, which of course result in a stateful page. > > > > > Mr Mean wrote: > > > > 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] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Need-to-redirect-to-the-current-page-upon-a-page-expire---how---tp15602103p15613198.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]
