Swarm throws a RestartResponseAtInterceptPageException to the login
page if it detects an anonymous user trying to access a secure page.
in the login page you can then do (after a successfull login)
if(!continueToOriginalDestination()) setResponsePage(somePage.class);
the if is only in place because it is possible to access the loginpage
using for example a bookmarkable link, in that case there is nothing
to continue to and in most cases you simply want the user to go to
Application.get().getHomePage().

Maurice

On Tue, Mar 4, 2008 at 5:18 AM, Martijn Dashorst
<[EMAIL PROTECTED]> wrote:
> No, it is an exception. I don't know the exact name, but press
>  ctrl-space in your IDE and see if you can find it :)
>
>  RTIPE<ctrl-space>
>
>  Martijn
>
>
>
>  On 3/4/08, Warren <[EMAIL PROTECTED]> wrote:
>  > I can not find the class RedirectToInterceptPage. I know of the method
>  >  redirectToInterceptPage(Page page). Are you telling me to write my own 
> class
>  >  RedirectToInterceptPage and then throw it? Sorry, I am not following you.
>  >  Could you explain?
>  >
>  >
>  >  > -----Original Message-----
>  >  > From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
>  >  > Sent: Monday, March 03, 2008 7:13 PM
>  >  > To: [email protected]
>  >  > Subject: Re: Wicket-Security and continueToOriginalDestination
>  >  >
>  >  >
>  >  > throw new RedirectToInterceptPage(foo);
>  >  >
>  >  > in foo:
>  >  >
>  >  >
>  >  > ...
>  >  > continueToOriginalDestination();
>  >  >
>  >  >
>  >  > On 3/4/08, Warren <[EMAIL PROTECTED]> wrote:
>  >  > > How do you get continueToOriginalDestination() to work using
>  >  > >  Wicket-Security? I can get it to work without using Wicket-Security.
>  >  > >
>  >  > >  Thanks,
>  >  > >
>  >  > >  Warren Bell
>  >  > >
>  >  > >
>  >  > >  ---------------------------------------------------------------------
>  >  > >  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >  > >  For additional commands, e-mail: [EMAIL PROTECTED]
>  >  > >
>  >  > >
>  >  >
>  >  >
>  >  > --
>  >  > Buy Wicket in Action: http://manning.com/dashorst
>  >  > Apache Wicket 1.3.1 is released
>  >  > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1
>  >  >
>  >  > ---------------------------------------------------------------------
>  >  > 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]
>  >
>  >
>
>
>  --
>
>
> Buy Wicket in Action: http://manning.com/dashorst
>  Apache Wicket 1.3.1 is released
>  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1
>
>  ---------------------------------------------------------------------
>  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]

Reply via email to