Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-1877

Invalid values are not cleared when switching between view and edit mode in forms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.6.12.Final
    • None
    • None
    • None
    • Hide
      1. Go to http://localhost:9990/console/index.html#undertow
      2. Click "Edit"
      3. Change "Default Servlet Container" from "default" to "foo bar"
      4. Click "Save"
      5. An error is shown, and the form switches into view mode with
        "Default Servlet Container" == "default"
      6. Click "Edit"
      7. The invalid value "foo bar" is shown for "Default Servlet Container"
      8. Click "Cancel"
      9. The invalid value "foo bar" is now also shown in view mode
      Show
      Go to http://localhost:9990/console/index.html#undertow Click "Edit" Change "Default Servlet Container" from "default" to "foo bar" Click "Save" An error is shown, and the form switches into view mode with "Default Servlet Container" == "default" Click "Edit" The invalid value "foo bar" is shown for "Default Servlet Container" Click "Cancel" The invalid value "foo bar" is now also shown in view mode
    • Hide

      When in view mode, click on the "Refresh" icon in the header or reload the page to see the correct value for "Default Servlet Container"

      Show
      When in view mode, click on the "Refresh" icon in the header or reload the page to see the correct value for "Default Servlet Container"

      There's an issue in the state management of (MBUI) forms (singleton and non-singleton).

      If you enter edit mode and enter an invalid value that is not validated on the client side but leads to an error on the server side. In that case, the invalid value is not reset and is still visible if you re-enter the edit mode. 

      What's even worse, the actual bug, is that if you leave the second edit mode with "Cancel," the invalid value now appears in view mode. 

            thofman Tomas Hofman
            hpehl@redhat.com Harald Pehl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: