Re: Recover from session expiration ?
Thanks for the suggestion! StatelessAjaxFallbackLink is very nearly magical. It in fact almost works, but unfortunately seems incompatible with most UrlCodingStrategies. It generates some spurious URLs with the wrong number of ..'s if the page has a subdirectory or two in the URL. Back to the debugging cave... Bng mbrictson wrote: Have you seen jolira-tools? It was mentioned here on the mailing list recently. I haven't used it, but it seems to have some components that are intended solve the type of "stateless ajax" problem you are having. http://code.google.com/p/jolira-tools/wiki/stateless - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Recover from session expiration ?
Another option: include an AjaxSelfUpdatingTimerBehavior on your page; this will keep your session from expiring. Boris Goldowsky-3 wrote: > > I have a wicket website that stores some user choices around how a page is > displayed in the Session - simple, non-critical information. It also uses > Ajax to do things like bring up a zoomed-in version of an image. > > The problem is when sessions expire after an hour or so, trying to zoom an > image or set a display preference causes an Page Expired exception. Since > people aren't logging in or anything, and no mission-critical information > is being stored in the session, I'd prefer to allow a new session to be > transparently created when necessary rather than showing users a "session > expired" page. > > Am I missing some easy way around this problem, or do I need to re-build > all the functionality to use cookies and jQuery instead of wicket forms > and ajax? > > This thread seems relevant but didn't seem to have a solution: > http://www.nabble.com/Graceful-handling-of-ajax-after-session-expiration-tf4559480.html > > Thanks for any pointers - > > Bng > > -- View this message in context: http://old.nabble.com/Recover-from-session-expiration---tp28184196p28210725.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Recover from session expiration ?
Have you seen jolira-tools? It was mentioned here on the mailing list recently. I haven't used it, but it seems to have some components that are intended solve the type of "stateless ajax" problem you are having. http://code.google.com/p/jolira-tools/wiki/stateless Boris Goldowsky-3 wrote: > > I have a wicket website that stores some user choices around how a page is > displayed in the Session - simple, non-critical information. It also uses > Ajax to do things like bring up a zoomed-in version of an image. > > The problem is when sessions expire after an hour or so, trying to zoom an > image or set a display preference causes an Page Expired exception. Since > people aren't logging in or anything, and no mission-critical information > is being stored in the session, I'd prefer to allow a new session to be > transparently created when necessary rather than showing users a "session > expired" page. > > Am I missing some easy way around this problem, or do I need to re-build > all the functionality to use cookies and jQuery instead of wicket forms > and ajax? > > This thread seems relevant but didn't seem to have a solution: > http://www.nabble.com/Graceful-handling-of-ajax-after-session-expiration-tf4559480.html > > Thanks for any pointers - > > Bng > > -- View this message in context: http://old.nabble.com/Recover-from-session-expiration---tp28184196p28210705.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Recover from session expiration ?
I have a wicket website that stores some user choices around how a page is displayed in the Session - simple, non-critical information. It also uses Ajax to do things like bring up a zoomed-in version of an image. The problem is when sessions expire after an hour or so, trying to zoom an image or set a display preference causes an Page Expired exception. Since people aren't logging in or anything, and no mission-critical information is being stored in the session, I'd prefer to allow a new session to be transparently created when necessary rather than showing users a "session expired" page. Am I missing some easy way around this problem, or do I need to re-build all the functionality to use cookies and jQuery instead of wicket forms and ajax? This thread seems relevant but didn't seem to have a solution: http://www.nabble.com/Graceful-handling-of-ajax-after-session-expiration-tf4559480.html Thanks for any pointers - Bng