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

AjaxFormChoiceComponentUpdatingBehavior fails for choices containing other invalid FormComponents

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.10, 6.8.0, 7.0.0-M1
    • 6.9.0, 1.5.11, 7.0.0-M1
    • wicket
    • None

    Description

      If a TextField inside a RadioGroup has a ValidationError, processing of AjaxFormChoiceComponentUpdatingBehavior will erroneously update the group's model:

      • RadioGroup#validate() does not convert the input, because #isValid() returns false (since the nested textfield has an error message)
      • the behavior tests #hasErrorMessage() on the group, which returns false (since the group itself doesn't have an error message)
      • the behavior continues processing with a null value

      Attachments

        Activity

          People

            svenmeier Sven Meier
            svenmeier Sven Meier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: