I do this:

        @Override
        public Session newSession(Request request, Response response) {
                Session s = new MySession(request);
                mInjector.inject(s);
                return s;
        }


Cheers - Steve


Jan Torben Heuer wrote:
Hi,

I'm a Wicket and Guice beginner. I successfully managed Guice to Inject my dependency into a WebPage. Can Guice also inject the dependency into an AuthenticatedWebSession? I'd need a reference to my database in the #authenticate(String, String) method.

Jan



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to