right, missed it. i guess the next step would be to set a breakpoint
there and see if its ever called. if not, set a breakpoint in
websession constructor and see why that is invoked instead of the
overridden factory.
-igor
On Fri, Feb 15, 2008 at 10:25 AM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:
> 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]