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

JavaScript error when submitting nested multipart form

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0-beta3
    • Fix Version/s: 6.0.0
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      wicket 6.0.0-beta3, Chrome

      Description

      When attempting to submit a nested form containing a FileUploadField via AjaxButton, the following JavaScript error is reported (via Wicket Debug Panel):

      ERROR: An error occurred while executing Ajax request:TypeError: Object #<HTMLDivElement> has no method 'submit'

      1. nestedforms.zip
        23 kB
        Jeff Bailey

        Activity

        Hide
        blahspam Jeff Bailey added a comment -

        Quickstart demonstrating the error

        browse to http://localhost:8080/ and click on the "Inner Submit" button.

        Show
        blahspam Jeff Bailey added a comment - Quickstart demonstrating the error browse to http://localhost:8080/ and click on the "Inner Submit" button.
        Hide
        mgrigorov Martin Grigorov added a comment -

        A fix is committed in master branch.
        I'll close the ticket when I add some unit tests.

        Show
        mgrigorov Martin Grigorov added a comment - A fix is committed in master branch. I'll close the ticket when I add some unit tests.
        Hide
        mgrigorov Martin Grigorov added a comment -

        Test added.

        Show
        mgrigorov Martin Grigorov added a comment - Test added.
        Hide
        blahspam Jeff Bailey added a comment -

        Thanks Martin

        Show
        blahspam Jeff Bailey added a comment - Thanks Martin

          People

          • Assignee:
            mgrigorov Martin Grigorov
            Reporter:
            blahspam Jeff Bailey
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development