Oracle® Fusion Middleware Web User Interface Developer's Guide for Oracle Application Development Framework 11g Release 1 (11.1.1.5.0) Part Number B31973-07 |
|
|
View PDF |
This appendix lists all the message keys and message setter methods for ADF Faces converters and validators.
This chapter includes the following sections:
The FacesMessage
class supports both summary and detailed messages. The convention is that:
The summary message is defined for the main key. The key value is of the form classname
.
MSG_KEY
.
The detailed message is of the form classname
.
MSG_KEY
_detail
.
In summary, to override a detailed message you can either use the setter method on the appropriate class or enter a replacement message in a resource bundle using the required message key.
Placeholders are used in detail messages to provide relevant details such as the value the user entered and the label of the component for which this is a message. The general order of placeholder identifiers is:
component label
input value (if present)
minimum value (if present)
maximum value (if present)
pattern (if present)
The following information is given for each of the ADF Faces converter and validators:
The set method you can use to override the message.
The message key you can use to identify your own version of the message in a resource bundle.
How placeholders can be used in the message to include details such as the input values and patterns.
This section gives the reference details for all ADF Faces converter and validator detail messages.
Converts strings representing color values to and from java.awt.Color
objects. The set of patterns used for conversion can be overriden.
Convert color: Input value cannot be converted to a color based on the patterns set
Set method:
setMessageDetailConvertBoth(java.lang.String convertBothMessageDetail)
Message key:
org.apache.myfaces.trinidad.convert.ColorConverter.CONVERT_detail
Placeholders:
dateStyle
and timeStyle
set in the converterConverts a string to and from java.util.Date
and the converse based on the pattern and style set.
Convert date and time: Date-time value that cannot be converted to Date object when type
is set to both
Set method:
setMessageDetailConvertBoth(java.lang.String convertBothMessageDetail)
Message key:
org.apache.myfaces.trinidad.convert.DateTimeConverter.CONVERT_BOTH_detail
Placeholders:
Convert date: Input value cannot be converted to a Date when the pattern or secondary pattern is set or when type
is set to date
Set method:
setMessageDetailConvertDate(java.lang.String convertDateMessageDetail)
Message key:
org.apache.myfaces.trinidad.convert.DateTimeConverter.CONVERT_DATE_detail
Placeholders:
Convert date: Input value cannot be converted to a Date when the pattern or secondary pattern is set or when type
is set to date
Set method:
setMessageDetailConvertTime(java.lang.String convertTimeMessageDetail)
Message key:
org.apache.myfaces.trinidad.convert.DateTimeConverter.CONVERT_TIME_detail
Placeholders:
Provides an extension of the standard JSF javax.faces.convert.NumberConverter
class. The converter provides all the standard functionality of the default NumberConverter
and is strict while converting to an object.
Convert number: Input value cannot be converted to a Number, based on the pattern set
Set method:
setMessageDetailConvertPattern(java.lang.String convertPatternMessageDetail)
Message key:
org.apache.myfaces.trinidad.convert.NumberConverter.CONVERT_PATTERN_detail
Placeholders:
Convert number: Input value cannot be converted to a Number when type
is set to number
and pattern
is null or not set
Set method:
setMessageDetailConvertNumber(java.lang.String convertNumberMessageDetail)
Message key:
org.apache.myfaces.trinidad.convert.NumberConverter.CONVERT_NUMBER_detail
Placeholders:
Convert number: Input value cannot be converted to a Number when type
is set to currency
and pattern
is null or not set
Set method:
setMessageDetailConvertCurrency(java.lang.String convertCurrencyMessageDetail)
Message key:
org.apache.myfaces.trinidad.convert.NumberConverter.CONVERT_CURRENCY_detail
Placeholders:
Convert number: Input value cannot be converted to a Number when type
is set to percent
and pattern
is null or not set
Set method:
setMessageDetailConvertPercent(java.lang.String convertPercentMessageDetail)
Message key:
org.apache.myfaces.trinidad.convert.NumberConverter.CONVERT_PERCENT_detail
Placeholders:
Validates the byte length of strings when encoded.
Validate byte length: The input value exceeds the maximum byte length
Set method:
setMessageDetailMaximum(java.lang.String maximumMessageDetail)
Message key:
org.apache.myfaces.trinidad.validator.ByteLengthValidator.MAXIMUM_detail
Placeholders:
Validates that the date is valid with some given restrictions.
Validate date restriction - Invalid Date: The input value is invalid when invalidDate
is set
Set method:
setMessageDetailInvalidDays(java.lang.String invalidDays)
Message key:
org.apache.myfaces.trinidad.validator.DateRestrictionValidator.WEEKDAY_detail
Placeholders:
Validate date restriction - Invalid day of the week: The input value is invalid when invalidDaysOfWeek
is set
Set method:
setMessageDetailInvalidDaysOfWeek(java.lang.String invalidDaysOfWeek)
Message key:
org.apache.myfaces.trinidad.validator.DateRestrictionValidator.DAY_detail
Placeholders:
Validate date restriction - Invalid month: The input value is invalid when invalidMonths
is set
Set method:
setMessageDetailInvalidMonths(java.lang.String invalidMonths)
Message key:
org.apache.myfaces.trinidad.validator.DateRestrictionValidator.MONTH_detail
Placeholders:
Validates that the date entered is within a given range.
Validate date-time range: The input value exceeds the maximum
value set
Set method:
setMessageDetailMaximum(java.lang.String maximumMessageDetail)
Message key:
org.apache.myfaces.trinidad.validator.DateTimeRangeValidator.MAXIMUM_detail
Placeholders:
Validate date-time range: The input value is less than the minimum
value set
Set method:
setMessageDetailMinimum(java.lang.String minimumMessageDetail)
Message key:
org.apache.myfaces.trinidad.validator.DateTimeRangeValidator.MINIMUM_detail
Placeholders:
Validate date-time range: The input value is not within the range, when minimum
and maximum
are set
Set method:
setMessageDetailNotInRange(java.lang.String notInRangeMessageDetail)
Message key:
org.apache.myfaces.trinidad.validator.DateTimeRangeValidator.NOT_IN_RANGE_detail
Placeholders:
Validates that the value entered is within a given range.
Validate double range: The input value exceeds the maximum
value set
Set method:
setMessageDetailMaximum(java.lang.String maximumMessageDetail)
Message key:
org.apache.myfaces.trinidad.validator.DoubleRangeValidator.MAXIMUM_detail
Placeholders:
Validate double range: The input value is less than the minimum
value set
Set method:
setMessageDetailMinimum(java.lang.String minimumMessageDetail)
Message key:
org.apache.myfaces.trinidad.validator.DoubleRangeValidator.MINIMUM_detail
Placeholders:
Validate double range: The input value is not within the range, when minimum
and maximum
are set
Set method:
setMessageDetailNotInRange(java.lang.String notInRangeMessageDetail)
Message key:
org.apache.myfaces.trinidad.validator.DoubleRangeValidator.NOT_IN_RANGE_detail
Placeholders:
Validates that the value entered is within a given range.
Validate length: The input value exceeds the maximum
value set
Set method:
setMessageDetailMaximum(java.lang.String maximumMessageDetail)
Message key:
org.apache.myfaces.trinidad.validator.LengthValidator.MAXIMUM_detail
Placeholders:
Validate length: The input value is less than the minimum
value set
Set method:
setMessageDetailMinimum(java.lang.String minimumMessageDetail)
Message key:
org.apache.myfaces.trinidad.validator.LengthValidator.MINIMUM_detail
Placeholders:
Validate length: The input value is not within the range, when minimum
and maximum
are set
Set method:
setMessageDetailNotInRange(java.lang.String notInRangeMessageDetail)
Message key:
org.apache.myfaces.trinidad.validator.LengthValidator.NOT_IN_RANGE_detail
Placeholders:
Validates an expression using Java regular expression syntax.
Validate regular expression: The input value does not match the specified pattern
Set method:
setMessageDetailNoMatch(java.lang.String noMatchMessageDetail)
Message key:
org.apache.myfaces.trinidad.validator.RegExpValidator.NO_MATCH_detail
Placeholders: