Mensagens com JavaServer Faces

1 resposta
F

Olá, como faço para colocar uma mensagem padronizada numa validação padrão JSF? Por exemplo, ao requerer um campo, ao inves da mensagem em ingles, gostaria de coloca - la em português.

1 Resposta

ranophoenix

No seu arquivo de propriedades:

# JSF errors
javax.faces.component.UIInput.REQUIRED = Please enter the required value.
javax.faces.component.UIInput.CONVERSION = Conversion error occurred
javax.faces.component.UIInput.REQUIRED = Value is required
javax.faces.component.UISelectOne.INVALID = Value is not a a valid option
javax.faces.component.UISelectMany.INVALID = Value is not a valid option
javax.faces.validator.NOT_IN_RANGE = Specified attribute is not between the expected values
javax.faces.validator.DoubleRangeValidator.MAXIMUM = Value is greater than allowable maximum
javax.faces.validator.DoubleRangeValidator.MINIMUM = Value is less than allowable minimum
javax.faces.validator.DoubleRangeValidator.TYPE = Value is not of the correct type
javax.faces.validator.LengthValidator.MAXIMUM = Not enough characters
javax.faces.validator.LengthValidator.MINIMUM = Too much characters
javax.faces.validator.LongRangeValidator.MAXIMUM = Value is greater than allowable maximum
javax.faces.validator.LongRangeValidator.MINIMUM = Value is less than allowable minimum
javax.faces.validator.LongRangeValidator.TYPE = Value is not of the correct type
Criado 18 de setembro de 2006
Ultima resposta 19 de set. de 2006
Respostas 1
Participantes 2