I tried both AbortException and RestartResponseException. They didn't work.
AbortException basically causes Wicket to show a blank page instead of
redirecting to the external site while RestartResponseException caused stack
overflow error. The exceptions were thrown in
onUnauthorizedInstantiation(...) method.
Johan Compagner wrote:
>
> But if the right abort/restart exception is thrown then it should work
> without a complete page being created.
>
> johan
>
>
> On Tue, May 6, 2008 at 12:05 PM, Maurice Marrink <[EMAIL PROTECTED]>
> wrote:
>
>> No, The homepage class will be (at least partially) constructed.
>> Because it is the Component constructor that triggers the call to the
>> listeners.
>>
>> Maurice
>>
>> On Tue, May 6, 2008 at 11:37 AM, TH Lim <[EMAIL PROTECTED]> wrote:
>> >
>> > Hi,
>> >
>> > I have setup a private homepage in org.apache.wicket.WebApplication.
>> My
>> > intention is to redirect the user, if he not logged in, to an external
>> site.
>> > Once he has successfully logon using the external site, he will be
>> > redirected back to the private homepage. I use setRequestTarget(new
>> > RedirectRequestTarget("...") inside
>> >
>>
>> IUnauthorizedComponentInstantiationListener.onUnauthorizedInstantiation(...)
>> > to achieve my objective. It works and at the same time my homepage
>> class was
>> > instantiated in the background. My question is, is it possible to
>> redirect
>> > the request to the external site and avoid instantiating the homepage
>> class
>> > altogether.
>> >
>> > TQ
>> >
>> > /lim/
>> >
>> > --
>> > View this message in context:
>> http://www.nabble.com/Private-Homepage-Redirection-tp17079231p17079231.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/Private-Homepage-Redirection-tp17079231p17080212.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]