Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1916

setResponsePage(Application#getHomePage()) mounted as / (default) vs. ajax requests

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4-M3
    • Fix Version/s: 1.4-RC2
    • Component/s: wicket
    • Labels:
      None

      Description

      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.

        Attachments

        1. 1916.patch
          0.8 kB
          Jeremy Thomerson
        2. Wicket-Quickstart.zip
          22 kB
          Martin Terra

          Activity

            People

            • Assignee:
              jdonnerstag Juegen Donnerstag
              Reporter:
              hell Jan Loose
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: