Re: Getting control of Wicket Session.

2010-01-19 Thread Apple Grew
Thanks a lot guys. Regards, Apple Grew my blog @ http://blog.applegrew.com/ On Tue, Jan 19, 2010 at 4:03 PM, Pedro Santos wrote: > Wicket application has his entry point at an filter. An simple user request > to server will keep his session alive. > > > http://java.sun.com/products/servlet/2.1

Re: Getting control of Wicket Session.

2010-01-19 Thread Pedro Santos
Wicket application has his entry point at an filter. An simple user request to server will keep his session alive. http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpSession.html#getLastAccessedTime()

Re: Getting control of Wicket Session.

2010-01-18 Thread Andrew Lombardi
((WebRequest)getRequest()).getHttpServletRequest().getSession() On Jan 18, 2010, at 10:12 PM, Apple Grew wrote: > @Pedro > > Thanks for the response. Now I have two questions. > > 1. How do I get reference of HttpSession? In Wicket I seem to get > reference of WebSession. > 2. How do I no

Re: Getting control of Wicket Session.

2010-01-18 Thread Apple Grew
@Pedro Thanks for the response. Now I have two questions. 1. How do I get reference of HttpSession? In Wicket I seem to get reference of WebSession. 2. How do I notify the servlet container (I guess Wicket is not in-charge of maintaining the HttpSession), that the user is active? If I

Re: Getting control of Wicket Session.

2010-01-18 Thread Steve Swinsburg
Presumably, if the user is typing a long document and hasn't clicked on anything for a while, you'll need to indicate to Wicket/HttpSession (probably via AJAX), that the session is to be kept alive. I believe this is how the autosave functions of things like rich text editors work, keeping the s

Re: Getting control of Wicket Session.

2010-01-18 Thread Pedro Santos
Use attributes from HttpSession like getLastAccessedTime() and getMaxInactiveInterval(). You can get access through WebRequest that holds an HttpServletRequest object. When HttpSession ends, the wicket session ends too. On Mon, Jan 18, 2010 at 5:33 PM, Apple Grew wrote: > Hi, > > I am a Wicket

Getting control of Wicket Session.

2010-01-18 Thread Apple Grew
Hi, I am a Wicket fresher. I am still getting the hang of this. I want to develop a web application where I would like to show the user a message informing him that his session is about to expire in x minutes. If he wants to save his session then can click on a button which appears along with thi