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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: 1.4.17
    • Fix Version/s: None
    • Component/s: 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

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

              Dates

              • Created:
                Updated:
                Resolved: