Hello wicket community,

there is a second issue I don't know how to solve.

Imagine the following situation:
-User visits page
-User logs in
-User clones the browser window by pressing Strg+N (2 browser windows with 
logged-in-panels are shown now)
-User logs out in second page
-User closes second page
-User calls a use case function for logged-in-users in a panel in first page (*)

The aim is to navigate to the start page when the user tries the last action 
(*).

My idea is to override the onBeginRequest method of the WebRequestCycle in the 
application class.
Then check if the boolean member "wasLoggedIn" in my page is set to true and 
the boolean member "isLoggedIn" in the session is set to false.
When this constellation happens, I would call the 
setResponsePage(StartPage.class) etc.

The problem is: When I call getRequest().getPage() in the onBeginRequest 
method, the result is always null.
Do you know how to get the page the request was initiated from?

Best regards
Leigh



      

Reply via email to