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

AjaxFormSubmitBehavior: method onSubmit and method onError are called both on submit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0 branch (discontinued)
    • 2.0 branch (discontinued)
    • None
    • None

    Description

      wicket.ajax.form.AjaxFormSubmitBehavior:

      Index: AjaxFormSubmitBehavior.java
      ===================================================================
      — AjaxFormSubmitBehavior.java (revision 504510)
      +++ AjaxFormSubmitBehavior.java (working copy)
      @@ -136,7 +136,7 @@
      onSubmit(target);
      }

      • if (!form.hasError())
        + if (form.hasError()) { onError(target); }

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            hell Jan Loose
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: