MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-1602752818-1232550898=:63833"

--0-1602752818-1232550898=:63833
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

=0A=0AHello wicket community,=0A=0A=0Athere is a second issue I don't know =
how to solve.=0A=0AImagine the following situation:=0A-User visits page=0A-=
User logs in=0A-User clones the browser window by pressing Strg+N (2 browse=
r windows with logged-in-panels are shown now)=0A-User logs out in second p=
age=0A-User closes second page=0A-User calls a use case function for logged=
-in-users in a panel in first page (*)=0A=0AThe aim is to navigate to the s=
tart page when the user tries the last action (*).=0A=0AMy idea is to overr=
ide the onBeginRequest method of the WebRequestCycle in the application cla=
ss.=0AThen check if the boolean member "wasLoggedIn" in my page is set to t=
rue and the boolean member "isLoggedIn" in the session is set to false.=0AW=
hen this constellation happens, I would call the setResponsePage(StartPage.=
class) etc.=0A=0AThe problem is: When I call getRequest().getPage() in the =
onBeginRequest method, the result is always null.=0ADo you know how to get =
the page the request was initiated from?=0A=0ABest regards=0ALeigh=0A=0A=0A=
      
--0-1602752818-1232550898=:63833
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he=
ad><body><div style=3D"font-family:times new roman, new york, times, serif;=
font-size:12pt"><DIV>&nbsp;</DIV>=0A<DIV style=3D"FONT-SIZE: 12pt; FONT-FAM=
ILY: times new roman, new york, times, serif">=0A<DIV style=3D"FONT-SIZE: 1=
2pt; FONT-FAMILY: times new roman, new york, times, serif">=0A<DIV style=3D=
"FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">=0A=
<DIV>Hello wicket community,</DIV>=0A<DIV style=3D"FONT-SIZE: 12pt; FONT-FA=
MILY: times new roman, new york, times, serif">=0A<DIV style=3D"FONT-SIZE: =
12pt; FONT-FAMILY: times new roman, new york, times, serif">=0A<DIV style=
=3D"FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">=
=0A<DIV>&nbsp;</DIV>=0A<DIV>there is a second issue I don't know how to sol=
ve.</DIV>=0A<DIV>&nbsp;</DIV>=0A<DIV>Imagine the following situation:</DIV>=
=0A<DIV>-User visits page</DIV>=0A<DIV>-User logs in</DIV>=0A<DIV>-User clo=
nes the browser window by pressing Strg+N (2 browser windows with logged-in=
-panels are shown now)</DIV>=0A<DIV>-User logs out in second page</DIV>=0A<=
DIV>-User closes second page</DIV>=0A<DIV>-User calls a use case function f=
or logged-in-users in a panel in first page (*)</DIV>=0A<DIV>&nbsp;</DIV>=
=0A<DIV>The aim is to navigate to the start page when the user tries the la=
st action (*).</DIV>=0A<DIV>&nbsp;</DIV>=0A<DIV>My idea is to override the =
onBeginRequest method of the WebRequestCycle in the application class.</DIV=
>=0A<DIV>Then check if the boolean member "wasLoggedIn" in my page is set t=
o true and the boolean member "isLoggedIn" in the session is set to false.<=
/DIV>=0A<DIV>When this constellation happens, I would call the setResponseP=
age(StartPage.class) etc.</DIV>=0A<DIV>&nbsp;</DIV>=0A<DIV>The problem is: =
When I call getRequest().getPage() in the onBeginRequest method, the result=
 is always null.</DIV>=0A<DIV>Do you know how to get the page the request w=
as initiated from?</DIV>=0A<DIV>&nbsp;</DIV>=0A<DIV>Best regards</DIV>=0A<D=
IV>Leigh</DIV></DIV><BR></DIV></DIV></DIV><BR></DIV></DIV></div><br>=0A=0A=
=0A=0A      </body></html>
--0-1602752818-1232550898=:63833--


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

Reply via email to