You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2013/05/09 11:33:19 UTC

[jira] [Resolved] (WICKET-5180) setResponsePage from Ajax request cycle doesnt redirect correctly

     [ https://issues.apache.org/jira/browse/WICKET-5180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sven Meier resolved WICKET-5180.
--------------------------------

    Resolution: Not A Problem

Call #setResponsePage(TargetPage.class) and it will work fine.

                
> setResponsePage from Ajax request cycle doesnt redirect correctly
> -----------------------------------------------------------------
>
>                 Key: WICKET-5180
>                 URL: https://issues.apache.org/jira/browse/WICKET-5180
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 6.7.0
>            Reporter: Nick Pratt
>            Assignee: Sven Meier
>         Attachments: quickstart.tar.gz
>
>
> See attached quickstart.  Hit localhost:8080/gateway and contrast this to hitting localhost:8080/target (restart app after each test). User/Password can be anything.
> When invoking setResponsePage() from the AjaxRequestCycle, the target page is not shown after authentication, but instead the ajax-response is displayed.
> URL after auth is: http://localhost:8080/gateway?0-1.IBehaviorListener.0-
> Page content is:
> {html}
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <head><script type="text/javascript" src="./wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-ver-1366290154000.js"></script>
> <script type="text/javascript" src="./wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1366290154000.js"></script>
> <script type="text/javascript" src="./wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1366290154000.js"></script>
> <script type="text/javascript" src="./wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-debug-ver-1366290154000.js"></script>
> <script type="text/javascript" id="wicket-ajax-debug-enable">
> /*<![CDATA[*/
> Wicket.Ajax.DebugWindow.enabled=true;
> /*]]>*/
> </script>
> <script type="text/javascript" id="wicket-ajax-base-url">
> /*<![CDATA[*/
> Wicket.Ajax.baseUrl="gateway?0";
> /*]]>*/
> </script>
> <script type="text/javascript" id="AbstractAjaxTimerBehavior-timers">
> /*<![CDATA[*/
> if (typeof(Wicket.TimerHandles) === 'undefined') {Wicket.TimerHandles = {}}
> /*]]>*/
> </script>
> <script type="text/javascript" >
> /*<![CDATA[*/
> Wicket.Event.add(window, "load", function(event) { 
> Wicket.TimerHandles['id01'] = setTimeout('Wicket.Ajax.ajax({\"u\":\"./gateway?0-1.IBehaviorListener.0-\"});', 5000);
> ;});
> /*]]>*/
> </script>
> </head><body>
> You will be redirected in 5s.
> </body>
> </html>
> {html}
> This looks like the browser was never sent to the target page (TargetPage.class)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira