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

Feedback messages not cleared for invisible/disabled form components on submit.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.19.0
    • 6.20.0, 7.0.0-M6
    • None
    • None

    Description

      Having:

      • IFeedbackMessageFilter.NONE used as the default application's feedback message cleanup filter (in order to make feedback messages not to disappear after page refresh, i.e. persistent)
      • form with validatable component whose enabled/visible state may be dynamically changed by user (e.g. checkbox "send me email" and text field "email")

      First, user tries to submit form having invalid value - as the result validation error occurs.
      Then user makes that component invisible and retries form submitting - as the result no validation errors, but form wasn't submitted.

      This happens because that component still has error feedback message got from first submit. Note that when using default application's feedback message cleanup filter, form is successfully submitted.

      Probably, feedback messages should be cleared for invisible/disabled form components on submit, as it done for visible/enabled components in FormComponent.validate()

      Attachments

        1. quickstart.zip
          24 kB
          Denis Shokhalevich

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            denis.shok Denis Shokhalevich
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: