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

On multipart form, sendRedirect() with PageParameters are not working

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.12
    • 1.4.14, 1.5-RC1
    • wicket
    • None

    Description

      On a multipart form, calling setResponsePage(Class, PageParameters) will not redirect to the requested page.
      In the wicket ajax debug the following error appears:

      INFO: focus set on save3
      INFO: Invoking pre-call handler(s)...
      ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
      INFO: Invoking post-call handler(s)...
      INFO: Invoking failure handler(s)...

      and in Firefox Error Console the following error appears:

      Error: not well-formed
      Source File: http://localhost:8080/sample/?wicket:interface=:0:form:save::IActivePageBehaviorListener:0:1&wicket:ignoreIfNotActive=true&wicket:ajax=true
      Line: 1, Column: 87
      Source Code:
      <ajax-response><redirect>../?wicket:bookmarkablePage=:problem.sample.SecondPage&param1=value1&param2=value2</redirect></ajax-response>

      The problem is, that the URL from the response XML are not xml encoded.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mgrigorov Martin Tzvetanov Grigorov
            f_levente Fulop Levente
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment