I'm using throw new RestartResponseAtInterceptPageException to redirect to
an external page.  That doc is for Wicket 1.3.  I found that same page and
started using RestartResponseAtInterceptPageException instead.  I forget
where I found the documentation on it, but I believe that was a change with
1.5+.

_______________________________________
Stephen Walsh | http://connectwithawalsh.com


On Sun, Mar 3, 2013 at 9:01 PM, mike.hua <[email protected]> wrote:

> According to the web site:
>
> https://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html
>
> public void onSubmit()
> {
>     // Make sure no output for the current cycle is ever sent.
>     getRequestCycle().setRequestTarget(new
> RedirectRequestTarget("http://www.163.com";));
> }
>
> I can't find the method setRequestTarget under getRequestCycle().
>
> What's the matter?
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-redirect-an-external-web-site-and-where-is-setRequestTarget-method-tp4656924.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to