because in the onbeginrequest of the requestcycle
the request parsing starts.. it is not done yet. so the request cycle doenst
know the page

What you should do is have a AbstractSecurePage and do you stuff there (and
so on)
But look at the other projects like Swarm/Wasp or wicket-aut-roles


On Wed, Jan 28, 2009 at 21:18, Arthur Leigh Allen <
[email protected]> wrote:

> Hello people,
>
> any explanation or suggestion?
> Is there a possible way to retrieve the page from the request cycle?
> There is the getPage() method but the result is always null. Why?
>
> I would appreciate any answers.
>
> Thx a lot
> Leigh
>
>
>
>
> ________________________________
> Von: Dipu <[email protected]>
> An: [email protected]
> Gesendet: Mittwoch, den 21. Januar 2009, 17:46:38 Uhr
> Betreff: Re: getRequest().getPage() always null
>
> I think  setting this
> get().getApplicationSettings().setPageExpiredErrorPage(StartPage.class)
> in your application's init method  will solve your problem if i
> understand it correctly.
>
> regards
> Dipu
>
> On Wed, Jan 21, 2009 at 3:18 PM, Arthur Leigh Allen
> <[email protected]> wrote:
> > 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
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
>

Reply via email to