You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Makundi (JIRA)" <ji...@apache.org> on 2008/12/16 15:52:46 UTC

[jira] Updated: (WICKET-1916) setResponsePage(Application#getHomePage()) mounted as / (default) vs. ajax requests

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

Martin Makundi updated WICKET-1916:
-----------------------------------

    Attachment: Wicket-Quickstart.zip

Wicket quickstart for replicating this bug has been attached.

Click the button saying "Click this button and observe Wicket Ajax Debug" and observe wicket ajax debug output, you will see:

ERROR: Error while parsing response: Could not find root <ajax-response> element


> setResponsePage(Application#getHomePage()) mounted as / (default) vs. ajax requests
> -----------------------------------------------------------------------------------
>
>                 Key: WICKET-1916
>                 URL: https://issues.apache.org/jira/browse/WICKET-1916
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-M3
>            Reporter: Jan Loose
>            Assignee: Martijn Dashorst
>         Attachments: Wicket-Quickstart.zip
>
>
> Hi,
> I'm using a week old version of wicket 1.4-SNAPSHOT and there is one ugly bug ... in ajax request cannot be send redirect to homepage ... setResponsePage(Application#getHomePage()) because there is return onlu one byte as the response a in Ajax Debug Console I see this: 
> ---
> INFO: Using XMLHttpRequest transport
> INFO: 
> INFO: Initiating Ajax POST request on ?wicket:interface=:3:loginSwitchPanel:loginPanel:form:submit::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true&random=0.03614674718119204
> INFO: Invoking pre-call handler(s)...
> INFO: Received ajax response (1 characters)
> INFO: 
>  
> ERROR: Error while parsing response: Could not find root <ajax-response> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> ---
> If I mount the homepage to for example /home then is all ok.
> I can try to compile last trunk version of wicket 1.4-SNAPSHOT but there is 7 failed tests:
> Failed tests:
>   testAjaxHeaderContribution(org.apache.wicket.ajax.AjaxHeaderContributionTest)
>   testDoubleAjaxHeaderContribution(org.apache.wicket.ajax.AjaxHeaderContributionTest)
>   testBufferedExceptionErrorPage(org.apache.wicket.protocol.http.WebResponseExceptionsTest)
>   testExceptionErrorPage(org.apache.wicket.protocol.http.WebResponseExceptionsTest)
>   testExpirePage(org.apache.wicket.protocol.http.WebResponseExceptionsTest)
>   testInternalErrorPage(org.apache.wicket.protocol.http.WebResponseExceptionsTest)
>   testDomReadyOrder(org.apache.wicket.ajax.DomReadyOrderTest)
> Tests run: 722, Failures: 7, Errors: 0, Skipped: 0
> ---
> Thx for help!
> H.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.