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

AjaxFormChoiceComponentUpdatingBehavior fails for choices containing other invalid FormComponents

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.10, 6.8.0, 7.0.0-M1
    • Fix Version/s: 6.9.0, 1.5.11, 7.0.0-M1
    • Component/s: wicket
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: