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.
Mensagens com JavaServer Faces
F
1 Resposta
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
Alura O que é Python? — um guia completo para iniciar nessa linguagem de programação Acesse agora o guia sobre Python e inicie sua jornada nessa linguagem de programação: o que é e para que serve, sua sintaxe e como iniciar nela!
Casa do Codigo Guia pratico de TypeScript: Melhore suas aplicacoes... Por Thiago da Silva Adriano — Casa do Codigo