Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
Any
Description
Currently, <t:messages> inserts the offending fields' names in the standard validation messages. Unlike <h:messages>, it uses the text of the field's associated outputLabel, if present, to represent the field's name. This is an improvement over the standard implementation, which uses the value of the field's id attribute. However, there are times in which it is inconvenient to use the outputLabel. In particular, most outputLabels include a colon character that one wouldn't want inside the error message.
I would like to be able to specify that the value of the field's title attribute be the value inserted into the standard validation error messages, and, only if the title attribute is not present, to use the outputLabel (or id attribute).