sounds as if you want to implement your own authorization stuff - I'd suggest
to have a look into wicket-auth-roles (and the examples). there's a lot
already implemented and you don't have to hook into the requestcycle too
much ...

regards,
Michael


Arthur Leigh Allen 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]
> 
> 
>   
> 


-----
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/getRequest%28%29.getPage%28%29-always-null-tp21585241p21724628.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to