Re: How to invalidate session after panel replacement?

2010-12-11 Thread bht
Thanks Ernesto. It is doable without JavaScript: WebRequestCycle requestCycle = (WebRequestCycle) RequestCycle.get(); WebRequest webRequest = (WebRequest) requestCycle.getRequest(); HttpServletRequest httpServletRequest = webRequest.getHttpServletRequest(); httpServletRequest.getSession().setMaxI

Re: How to invalidate session after panel replacement?

2010-12-10 Thread Ernesto Reinaldo Barreiro
Bernard, There was someone asking something similar a few day ago... One idea that might work is -Put an ajax behavior on your page (AbstractDefaultAjaxBehavior) and use it to generate a callback url. -Use a non wicket AJAX (e.g. jquery AJAX) to call this behavior. -Make your panel call back this

How to invalidate session after panel replacement?

2010-12-10 Thread bht
Hi, I need to invalidate the web session after a panel of the current page is replaced. All my attempts are failing because webSession.invalidate() or even webSession.replaceSession(); have an influence on the current request/response. Typically, one would just show a new page, e.g. Session.inv