On Fri, 15 Feb 2008, Igor Vaynberg wrote:
> you need to override newsession on the app and return your subclass....
But he did it here, no?
> > public class MyApplication extends SpringWebApplication {
> >
> > private SpringComponentInjector springComponentInjector;
> >
> >
> > @Override
> > public Session newSession(Request request, Response
> > response) {
> > return new CustomSession(request);
> > }
...
> > MyApplication myApp = new MyApplication();
> > myApp.setSpringComponentInjector(new
> > SpringComponentInjector(myApp,
> > mockAppCtx));
> >
> > WicketTester wicketTester = new WicketTester(myApp);
Best wishes,
Timo
--
Timo Rantalaiho
Reaktor Innovations Oy <URL: http://www.ri.fi/ >
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]