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

AjaxFallbackButton: inconsistent submit order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.5, 1.4.7
    • 1.4.15, 1.5-RC1
    • wicket
    • None

    Description

      I just stumbled upon a problem with a Form containing a nested Form and two AjaxFallbackButtons (submit and preview). I need to implement different onSubmit() behavior of the nested Form depending on the clicked button.

      The order of onSubmit() calls is:

      without JS:

      • AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form)
      • OuterForm.onSubmit() // not used
      • Inner Form.onSubmit()

      with JS:

      • Inner Form.onSubmit()
      • OuterForm.onSubmit() // not used
      • AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form)

      With JS, it is therefore not possible to determine which button was clicked from inside a form's onSubmit() method.

      see also http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-td20131329.html

      Attachments

        1. Quickstart.zip
          3.73 MB
          Jacob DuBray

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              sfussenegger Stefan Fussenegger
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: