Don't set the redirect page if you're calling redirectToInterceptPage().

On 8/18/05, David Liebeherr <[EMAIL PROTECTED]> wrote:
> Hi all!
> 
> I have a problem with the redirectToInterceptPage.
> I have this:
>                listItem.add(new Link("delete") {
>                    public void onClick() {
>                            setResponsePage((Page) null);
>                            redirectToInterceptPage(new
> Confirmation("delete_ftpaccount", "Do you realy want to delte this
> ftp-account?"));
>                    }
>                });
> 
> I get the following Error:
> wicket.WicketRuntimeException: Already redirecting to
> '/test/serverConfig;jsessionid=E4E42D4494F7156FF2B6D65412CF30EF.node1?path=5'.
> Cannot redirect more than once
> wicket.protocol.http.BufferedWebResponse.redirect(BufferedWebResponse.java:96)
> wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:249)
> wicket.RequestCycle.respond(RequestCycle.java:771)
> wicket.RequestCycle.request(RequestCycle.java:406)
> wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:304)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 
> Any suggestions how to solve this?
> 
> Thanks,
> Dave
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to