Mensajes de error JSF estándares
En este apéndice se exponen los distintos mensajes JavaServer Faces estándares que se muestran al usuario debido a errores de conversión y validación en la capa de presentación.
Los mensajes JSF estándares son las llaves (keys) de un Resource Bundle de mensajes de errorores de nuestra aplicación Web que implementa el Framework JSF.
| UIInput | ||
| Llave (key) | Mensaje estándar | Mensaje alternativo |
| javax.faces.component.UIInput.CONVERSION | {0}: Conversion error occurred | |
| javax.faces.component.UIInput.REQUIRED Ejemplo:Registrar a un usuario en un sitio Web |
{0}: Validation Error: Value is required | Campo obligatorio |
| javax.faces.component.UIInput.UPDATE | {0}: An error occurred when processing your submitted information |
|
| UISelectOne, UISelectMany | ||
| Llave (key) | Mensaje estándar | Mensaje alternativo |
| javax.faces.component.UISelectOne.INVALID | {0}: Validation Error: Value is not valid | Valor "{0}" no es valido |
| javax.faces.component.UISelectMany.INVALID | {0}: Validation Error: Value is not valid |
Valor "{0}" no es valido |
| Converter | ||
| Llave (key) | Mensaje estándar | Mensaje alternativo |
| javax.faces.converter.BigDecimalConverter.DECIMAL | {2}: ''{0}'' must be a signed decimal number |
Valor ''{0}'' tiene que ser un número decimal |
| javax.faces.converter.BigIntegerConverter.BIGINTEGER | {2}: ''{0}'' must be a number consisting of one or more digits |
Valor "{0}" tiene que ser numérico |
| javax.faces.converter.BooleanConverter.BOOLEAN | {1}: ''{0}'' must be 'true' or 'false'. | Valor "{0}" tiene que ser verdadero o falso |
| javax.faces.converter.ByteConverter.BYTE | {2}: ''{0}'' must be a number between 0 and 255 |
Valor ''{0}'' tiene que ser un número entre 0 y 255 |
| javax.faces.converter.CharacterConverter.CHARACTER | {1}: ''{0}'' must be a valid character |
Valor ''{0}'' tiene que ser un caráctervalido |
| javax.faces.converter.DateTimeConverter.DATE | {2}: ''{0}'' could not be understood as a date |
Valor ''{0}'' no se puede interpretar como una fecha |
| javax.faces.converter.DateTimeConverter.TIME | {2}: ''{0}'' could not be understood as a time |
Valor ''{0}'' no se puede interpretar como una hora |
| javax.faces.converter.DateTimeConverter.DATETIME | {2}: ''{0}'' could not be understood as a date and time |
Valor ''{0}'' no se puede interpretar como fecha y hora |
| javax.faces.converter.DateTimeConverter.PATTERN_TYPE | {1}: A 'pattern' or 'type' attribute must be specified to convert the value ''{0}'' |
|
| javax.faces.converter.DoubleConverter.DOUBLE | {2}:''{0}'' must be a number consisting of one or more digits |
Valor "{0}" tiene que ser numérico |
| javax.faces.converter.EnumConverter.ENUM | {2}:''{0}'' must be convertible to an enum | |
| javax.faces.converter.EnumConverter.ENUM_NO_CLASS | {1}:''{0}'' must be convertible to an enum from the enum, but no enum class provided |
|
| javax.faces.converter.FloatConverter.FLOAT | {2}: ''{0}'' must be a number consisting of one or more digits |
Valor "{0}" tiene que ser numérico |
| javax.faces.converter.IntegerConverter.INTEGER Ejemplo:Registrar a un usuario en un sitio Web |
{2}:''{0}'' must be a number consisting of one or more digits |
Valor "{0}" tiene que ser numérico |
| javax.faces.converter.LongConverter.LONG | {2}:''{0}'' must be a number consisting of one or more digits |
Valor "{0}" tiene que ser numérico |
| javax.faces.converter.NumberConverter.CURRENCY | {2}:''{0}'' could not be understood as a currency value |
Valor ''{0}'' no se puede interpretar como una moneda |
| javax.faces.converter.NumberConverter.PERCENT | {2}: ''{0}'' could not be understood as a percentage |
Valor ''{0}'' no se puede interpretar como un porcentaje |
| javax.faces.converter.NumberConverter.NUMBER | {2}: ''{0}'' is not a number | Valor "{0}" tiene que ser numérico |
| javax.faces.converter.NumberConverter.PATTERN | {2}: ''{0}'' is not a number pattern | Valor "{0}" no es un patrón numérico |
| javax.faces.converter.ShortConverter.SHORT | {2}: ''{0}'' must be a number consisting of one or more digits |
Valor "{0}" tiene que ser numérico |
| javax.faces.converter.STRING | {1}: Could not convert ''{0}'' to a string | |
| Validator | ||
| Llave (key) | Mensaje estándar | Mensaje alternativo |
| javax.faces.validator.DoubleRangeValidator.MAXIMUM | {1}: Validation Error: Value is greater than allowable maximum of ‘’{0}’’ |
Longitud mayor que el máximo permitido de {0} |
| javax.faces.validator.DoubleRangeValidator.MINIMUM | {1}: Validation Error: Value is less than allowable minimum of ‘’{0}’’ |
Longitud menor que el mínimo permitido de {0} |
| javax.faces.validator.DoubleRangeValidator.NOT_IN_RANGE | {2}: Validation Error: Specified attribute is not between the expected values of {0} and {1} |
Valor no se encuentra entre {0} y {1} |
| javax.faces.validator.DoubleRangeValidator.TYPE | {0}: Validation Error: Value is not of the correct type |
|
| javax.faces.validator.LengthValidator.MAXIMUM | {1}: Validation Error: Value is greater than allowable maximum of ‘’{0}’’ |
Longitud mayor que el máximo permitido de {0} |
| javax.faces.validator.LengthValidator.MINIMUM Ejemplo:Registrar a un usuario en un sitio Web |
{1}: Validation Error: Value is less than allowable minimum of ‘’{0}’’ |
Longitud menor que el mínimo permitido de {0} |
| javax.faces.validator.LongRangeValidator.MAXIMUM | {1}: Validation Error: Value is greater than allowable maximum of ‘’{0}’’ |
Longitud mayor que el máximo permitido de {0} |
| javax.faces.validator.LongRangeValidator.MINIMUM | {1}: Validation Error Value is less than allowable minimum of ‘’{0}’’ |
Longitud menor que el mínimo permitido de {0} |
| javax.faces.validator.LongRangeValidator.NOT_IN_RANGE | {2}: Validation Error: Specified attribute is not between the expected values of {0} and {1} |
Valor no se encuentra entre {0} y {1} |
| javax.faces.validator.LongRangeValidator.TYPE | {0}: Validation Error: Value is not of the correct type |
|
| Deprecated | ||
| Llave (key) | Mensaje estándar | Mensaje alternativo |
| javax.faces.validator.NOT_IN_RANGE | Specified attribute is not between the expected values of {0} and {1} |
|