Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.15, 2.3.10, 2.3-next-M7, 3.0.2, 4.0.0-RC3
-
None
-
None
Description
Discovered via TCK: https://github.com/jakartaee/faces/blob/c6d7d879065056978d74e5f486847fb203606203/tck/faces23/uiinput/src/test/java/ee/jakarta/tck/faces/test/javaee8/uiinput/Spec329IT.java#L38
Original Issue: https://github.com/jakartaee/faces/issues/329
There are a few various issues here, but the current failure is that no required messages are outputted if nothing is submitted.
An additional requirement is that only one required message should be outputted for a single group, not multiple (i.e. each uiselect one element).
Source of the problem is that we don't follow the spec for uiselectone#processValidators properly:
And we need to submit some value for the input, if it's left as null then validation is skipped entirely per the UIinput#validate spec.