Previous Section  < Day Day Up >  Next Section

D.11 Identifiers for Standard JSF Messages

Most of the JSF default classes can be replaced with customized versions by declarations of implementation classes for with the identifier for the default implementation it replaces. This previous sections include all standard class identifiers for the standard validators and converters, and Appendix C includes identifiers for the standard components and renderers.

In addition to replacing default classes with custom classes, the text for all JSF messages can also be replaced by creating resource bundles containing the custom text for the standard message keys, see Chapter 7 for examples. This section contains subsections for all standard message keys along with the text (including message parameters, replaced by property values when the message is created) used by the JSF reference implementation.

javax.faces.component.UIInput.CONVERSION

A message with this summary text is created when an input value can't be converted to the data type of the bean property the component is bound to.

Sample text

"Conversion error occurred"

javax.faces.component.UIInput.REQUIRED

A message with this summary text is created when an input component has the required property set to true but no value is submitted.

Sample text

"Value is required"

javax.faces.component.UISelectOne.INVALID

A message with this summary text is created when the submitted value for a select-one component doesn't match one of the select item values.

Sample text

"Value is not a valid option"

javax.faces.component.UISelectMany.INVALID

A message with this summary text is created when the submitted value for a select-many component doesn't match one of the select item values.

Sample text

"Value is not a valid option"

javax.faces.validator.NOT_IN_RANGE

A message with this summary text is created when the value validated by one of the standard validators falls outside both the minimum and maximum value specified for the validator.

Sample text

"Specified attribute is not between the expected values of {0} and {1}"

javax.faces.validator.DoubleRangeValidator.MAXIMUM

A message with this summary text is created when the value validated by the standard DoubleRangeValidator exceeds the maximum value specified for the validator.

Sample text

"Value is greater than allowable maximum of {0}"

javax.faces.validator.DoubleRangeValidator.MINIMUM

A message with this summary text is created when the value validated by the standard DoubleRangeValidator is lower than the minimum value specified for the validator.

Sample text

"Value is less than allowable minimum of {0}"

javax.faces.validator.DoubleRangeValidator.TYPE

A message with this summary text is created when the value validated by the standard DoubleRangeValidator is of an invalid data type.

Sample text

"Value is not of the correct type"

javax.faces.validator.LengthRangeValidator.MAXIMUM

A message with this summary text is created when the value validated by the standard LengthValidator exceeds the maximum value specified for the validator.

Sample text

"Value is greater than allowable maximum of {0}"

javax.faces.validator.LengthRangeValidator.MINIMUM

A message with this summary text is created when the value validated by the standard LengthValidator is lower than the minimum value specified for the validator.

Sample text

"Value is less than allowable minimum of {0}"

javax.faces.validator.LengthRangeValidator.TYPE

A message with this summary text is created when the value validated by the standard LengthValidator is of an invalid data type.

Sample text

"Value is not of the correct type"

javax.faces.validator.LongRangeValidator.MAXIMUM

A message with this summary text is created when the value validated by the standard LongRangeValidator exceeds the maximum value specified for the validator.

Sample text

"Value is greater than allowable maximum of {0}"

javax.faces.validator.LongRangeValidator.MINIMUM

A message with this summary text is created when the value validated by the standard LongRangeValidator is lower than the minimum value specified for the validator.

Sample text

"Value is less than allowable minimum of {0}"

javax.faces.validator.LongRangeValidator.TYPE

A message with this summary text is created when the value validated by the standard LongRangeValidator is of an invalid data type.

Sample text

"Value is not of the correct type"

    Previous Section  < Day Day Up >  Next Section