RE: best way to detect session termination
Hi Eelco, thanks for the hint. Now I can detect the end of a session. Unfortunately I can't access my own wicket session in that sessionDestroyed() method in order to get the info about the connected user. I've got ther error message java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle. Do you know how I can achieve this? Andreas -Original Message- From: Eelco Hillenius [mailto:eelco.hillen...@gmail.com] Sent: Saturday, February 13, 2010 7:02 PM To: users@wicket.apache.org; sam.lued...@t-online.de Subject: Re: best way to detect session termination http://www.xyzws.com/Servletfaq/when-do-i-use-httpsessionlistener/7 Eelco On Sat, Feb 13, 2010 at 8:38 AM, Andreas Lüdtke sam.lued...@t-online.de wrote: I would like to detect the termination of the session to set the lastAccesTime in the user profile. This should also happen if the session times out. I read in archive about a HttpSessionListener that should do the trick. Unfortunately I can't find a place to install it. Thanks Andreas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
setPageExpiredErrorPage only for certain pages?
In my WebApplication class I use setPageExpiredErrorPage(). So far, so good. But this happens also for the main/home page that everybody can access. I would like to redirect only the pages where a user has to login, not for the home page. If the homepage expires, a simple redirect to a new session with that page should be made. Is this possible with wicket? Andreas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setPageExpiredErrorPage only for certain pages?
My guess would be to override RequestCycle#onRuntimeException and do your logic there if the exception is PageExpiredException. Regards, Peter 2010-02-14 13:54 keltezéssel, Andreas Lüdtke írta: In my WebApplication class I use setPageExpiredErrorPage(). So far, so good. But this happens also for the main/home page that everybody can access. I would like to redirect only the pages where a user has to login, not for the home page. If the homepage expires, a simple redirect to a new session with that page should be made. Is this possible with wicket? Andreas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: wicketstuff-jwicket, drag-and-drop, Internet Explorer 7/8
Sorry for the delay. I hoped that jQuery1.4/UI1.8 will fix this but this is still an internal error of jQery. See http://dev.jqueryui.com/ticket/4918, http://dev.jquery.com/ticket/4996 and many others. I'm testing a workaround (need to patch jQuery.js) and it seems to work. If you are still interrested in using jWicket please let me know and I'll keep you informed. I will wait for the official release of UI1.8 before comitting changes to wicketstuff. Stefan -Ursprüngliche Nachricht- Von: Stefan Jozsa [mailto:stefan_...@yahoo.com] Gesendet: Montag, 23. November 2009 12:01 An: users@wicket.apache.org Betreff: wicketstuff-jwicket, drag-and-drop, Internet Explorer 7/8 I'm getting Javascript errors (unspecified error, object not found) using jwicket drag-and-drop on IE 7/8. After an error, IE disables Javascript (can be 'restored' just by page reload). Any help welcome, thanks in advance, Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setPageExpiredErrorPage only for certain pages?
How would you know which page was requested when the session has expired? The whole reason for the PageExpiredException is that wicket doesn't know which page was requested. Use bookmarkablepagelinks for links you don't want to expire. Martijn 2010/2/14 Major Péter majorpe...@sch.bme.hu: My guess would be to override RequestCycle#onRuntimeException and do your logic there if the exception is PageExpiredException. Regards, Peter 2010-02-14 13:54 keltezéssel, Andreas Lüdtke írta: In my WebApplication class I use setPageExpiredErrorPage(). So far, so good. But this happens also for the main/home page that everybody can access. I would like to redirect only the pages where a user has to login, not for the home page. If the homepage expires, a simple redirect to a new session with that page should be made. Is this possible with wicket? Andreas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
problem with RestartResponseException in 1.4.6
all, i moved from 1.4.5 to 1.4.6 and started getting a problem with RestartResponseException. on a page that displays an item and has url something like http://localhost/item/38 there's an AjaxFallbackLink for a user to take an action. when the link gets clicked, if the user is not logged in it yet, it throws new RestartResponseException(SignInPage.class, params_) but SignInPage never loads. looks like the problem is that url generated in this case is http://localhost/item/signin/... instead of http://localhost/signin/... (as it was in 1.4.5) both item and signin pages are bookmarkable with MixedParamHybridUrlCodingStrategy can it be related to changes done to fix http://issues.apache.org/jira/browse/WICKET-2312? is there a workaround? Thanks, Vadim _ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/201469228/direct/01/
Re: problem with RestartResponseException in 1.4.6
try with latest snapshot -igor On Sun, Feb 14, 2010 at 5:02 PM, Vadim Tesis vad...@hotmail.com wrote: all, i moved from 1.4.5 to 1.4.6 and started getting a problem with RestartResponseException. on a page that displays an item and has url something like http://localhost/item/38 there's an AjaxFallbackLink for a user to take an action. when the link gets clicked, if the user is not logged in it yet, it throws new RestartResponseException(SignInPage.class, params_) but SignInPage never loads. looks like the problem is that url generated in this case is http://localhost/item/signin/... instead of http://localhost/signin/... (as it was in 1.4.5) both item and signin pages are bookmarkable with MixedParamHybridUrlCodingStrategy can it be related to changes done to fix http://issues.apache.org/jira/browse/WICKET-2312? is there a workaround? Thanks, Vadim _ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/201469228/direct/01/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org