Uploaded image for project: 'JBoss Developer Materials'
  1. JBoss Developer Materials
  2. JDF-591

Form validation failures in kitchensink-angularjs are not reported correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • jdfsite-2.17.Final
    • quickstarts
    • None
    • Hide

      1. Deploy and run the kitchensink-angularjs quickstart
      2. Enter an invalid email value. No error message is displayed after an value is input.
      3. Submit the form.
      4. The displayed error message for the email field reads "may not be null".
      5. Attempt to reset the form. The invalid email continues to be displayed.

      Show
      1. Deploy and run the kitchensink-angularjs quickstart 2. Enter an invalid email value. No error message is displayed after an value is input. 3. Submit the form. 4. The displayed error message for the email field reads "may not be null". 5. Attempt to reset the form. The invalid email continues to be displayed.

    Description

      If an invalid email is entered, sometimes the AngularJS quickstart allows the user to proceed to submit the form. The request sent by the client omits all invalid values since the model is not updated to include such values, resulting in misleading error messages reported to the user.

      Additionally, resetting the form fails to work correctly after such a form submission, and the invalid values continue to be displayed to the user.

      Attachments

        Activity

          People

            vineet.reynolds_jira Vineet Reynolds (Inactive)
            vineet.reynolds_jira Vineet Reynolds (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: