Hi, 

unfortunately it does not help. Use session listener roughly the same with
using newSession method.

I found one solution but looks like workaround without a real needed.

1) throw CustomExceprion on the onCreated method of the ISessionListener.
2) Replace DefaultExceptionMapperProvider with CustomExceptionMapperProvider
@Override
  public IExceptionMapper get()
  {
    return new IExceptionMapper()
    {
      @Override
      public IRequestHandler map(Exception e)
      {
        if (e instanceof CustomExceprion )
        {
          return new RenderPageRequestHandler(new
PageProvider(Application.get().getHomePage()));
        }
      }
    };
  }

Does anybody know better solution?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Redirect-to-the-HomePage-on-newSession-tp4656365p4656382.html
Sent from the Users forum mailing list archive at Nabble.com.

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

Reply via email to