How to create Wicket's session and inject to Wicket's life cycle using Servlet Filter ?

2010-01-09 Thread smallufo
2010/1/9 smallufo small...@gmail.com Hi all : I'm trying to inject something to the Wicket Session by a Generic Servlet Filter : public class UserFilter implements Filter { private UserDao UserDao; @Override public void init(FilterConfig config) throws ServletException {

Re: How to create Wicket's session and inject to Wicket's life cycle using Servlet Filter ?

2010-01-09 Thread Igor Vaynberg
why not simply put whatever it is into the httpsession, and then write a getter in wicket's session that retrieves it from there? seems simpler. -igor On Sat, Jan 9, 2010 at 4:07 AM, smallufo small...@gmail.com wrote: 2010/1/9 smallufo small...@gmail.com Hi all : I'm trying to inject

Re: How to create Wicket's session and inject to Wicket's life cycle using Servlet Filter ?

2010-01-09 Thread smallufo
2010/1/10 Igor Vaynberg igor.vaynb...@gmail.com why not simply put whatever it is into the httpsession, and then write a getter in wicket's session that retrieves it from there? seems simpler. -igor Thank you . But how to get HttpSession inside Wicket's Session ? thanks ...

Re: How to create Wicket's session and inject to Wicket's life cycle using Servlet Filter ?

2010-01-09 Thread smallufo
Thank you , I've found the answer : httpSession = ((ServletWebRequest)request).getHttpServletRequest().getSession(); This is a better way ... thanks a lot. 2010/1/10 smallufo small...@gmail.com 2010/1/10 Igor Vaynberg igor.vaynb...@gmail.com why not simply put whatever it is into the