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

Multipart forms fails on Chrome during Ajax submit

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

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.5
    • 1.4.7, 1.5-M1
    • wicket
    • None
    • Google Chrome 3.0.195.38

    Description

      AjaxSubmitLink doesn't work with multipart forms on Google Chrome.
      AjaxSubmitLink calls wicketSubmitFormById in its onClick handler. When submiting multipart form this function creates hidden iframe and attaches handleMultipartComplete function to the onload event.
      handleMultipartComplete calls loadedCallback with envelope parameter. On Google Chrome envelope is undefined so loadedCallback craches ("Could not find root <ajax-response> element" is reported).

      I dig more and I found that handleMultipartComplete is called before server side callback completes, thats why 'envelope' is undefined....

      Attachments

        Issue Links

        Activity

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

          People

            ivaynberg Igor Vaynberg
            dlipski Daniel Lipski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment