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

AjaxFormValidtingBehavior should not cause form submission when their is no error.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Invalid
    • 1.4.17
    • None
    • wicket

    Description

      AjaxFormValidatingBehavior.addToAllFormComponents(myForm, "onchange"); would cause a form submission if their is no error.

      Most of the time you do not want the form to submit but rather only have client side validation.

      example:

      i enter 24AA on phone number.. i get an error.

      I enter 1234568899 .. i don't get an error but I shouldn't have my input submitted.

      Maybe some option to decide if you should submit when their is no error.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cablepuff chun ping wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: