Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-11004

The old model value is redisplayed on @NotNull validation error with INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL=true

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 15.0.0.Beta1
    • JSF
    • None
    • Hide

      0. Deploy the attached reproduce and access http://localhost:8080/test/
      1. Input any value to 'User ID' field. Leave 'Password' field blank. Then click 'Login' button.
      2. You will see a validation error message for password. And the input value for 'User ID' is restored. This is a correct behavior
      3. Remove the previous value in 'User ID' field and leave it blank. Input any value to 'Password' field. Then click 'Login' button.
      4. You will see a validation error message for user id. And the input value in step 1 is restored again in the field. This should be blank.

      Show
      0. Deploy the attached reproduce and access http://localhost:8080/test/ 1. Input any value to 'User ID' field. Leave 'Password' field blank. Then click 'Login' button. 2. You will see a validation error message for password. And the input value for 'User ID' is restored. This is a correct behavior 3. Remove the previous value in 'User ID' field and leave it blank. Input any value to 'Password' field. Then click 'Login' button. 4. You will see a validation error message for user id. And the input value in step 1 is restored again in the field. This should be blank.

      When setting javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL to true, the old (or initial) model value is redisplayed on @NotNull validation error instead of the submitted value.

      A required submitted value, which is afterwards removed and re-submitted, should not reappear.

      This issue is reported in JAVASERVERFACES_SPEC_PUBLIC-671 and it's fixed in the revision 0813ee1fdef418e47ef03ced7d57a1abe4c2bf54. Please backport this to JBoss mojarra.

            dtikhomi@redhat.com Dmitrii Tikhomirov
            jkasik@redhat.com Jan Kašík
            Daniel Cihak Daniel Cihak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: