Looking for some follow up on this..

1) Just wondering as to why isnt a constructor a good place to do the
redirection to an external url , ?
2) What should be the right place for it, given my use-case..

Thanks in advance.. 

Johan Compagner wrote:
> 
> I think this usecase should be supported but isnt the best way, you
> should throw an AbortException when you want to redirect in the
> constructor. Dont know from top of my head if we have one just for an
> url but that is easily made
> 
> On 4/30/08, mfs <[EMAIL PROTECTED]> wrote:
>>
>> Guys,
>>
>> I have a LogoutPage which does the following in its constructor
>>
>> LogoutPage()
>> {
>>     getSession().invalidate();
>>
>>     // redirecting to the external app logout page
>>     RequestCycle.get().setRequestTarget(
>>         new RedirectRequestTarget(Host.getHttpsUrl()
>>             + xyz.getLogoutURL()));
>>
>>     getRequestCycle().setRedirect(true);
>> }
>>
>> Now, for some reasons the redirect to the specified external app page
>> doesnt
>> happen, infact i am taken to the session-expired page (which is because
>> the
>> request comes to wicket app, instead of redirection to this external app)
>> .
>> Let me add that i am using wiket-auth-roles for authorization...
>>
>> Also the reason i am doing this inside the Page itself (and not in the
>> onClick or some other event as suggested in another other thread) is
>> because
>> i need to expose this LogoutPage to an external app as well, which will
>> redirect to this page after invalidating the session....This part of
>> Interoperability/SingleSignon Support.
>>
>> Thanks in advance.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/LogoutPage---Responsible-for-invalidation-and-redirection-to-non-wicket-page-tp16974119p16974119.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]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/LogoutPage---Responsible-for-invalidation-and-redirection-to-non-wicket-page-tp16974119p17042343.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