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

Multipart forms fails on Chrome during Ajax submit

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.5
    • Fix Version/s: 1.4.7, 1.5-M1
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: