vov wrote:
> Is it possible to redirect user to the HomePage when new session is created?
> 
> @Override
>   public Session newSession(Request request, Response response)
> {
> 
> //RequestCycle.get().setResponsePage(getHomePage());
> //or 
> //RequestCycle.get().replaceAllRequestHandlers(new
> RenderPageRequestHandler(new //PageProvider(getHomePage())));
> // do not work
> }
> 
> The main idea is always show HomePage when user logged in to the application
> and not take into account the URL which was printed to the address line

Hi,

how about having a LoginPage/Panel that doesn't
continueToOriginalDestination()? Instead, it could setResponsePage(
Application.get().getHomePage() ) after successful authentication.

I think that should achieve what you want.

Bye
   Stefan


> 
> 
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Redirect-to-the-HomePage-on-newSession-tp4656365.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]
> 

-- 
im Auftrag der eFonds Solutions AG, +49-89-579494-3417


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

Reply via email to