1

I have an input field, <p:inputText>. Im setting the data to a long attribute. If I write a something else than a letter, then im getting an error message on my <p:messages>.

This is behavior that I want.

But is it possible to intercept the message, and print my own insted?

BalusC
  • 1,040,783
  • 362
  • 3,548
  • 3,513
Kims
  • 375
  • 3
  • 14

1 Answers1

0

<p:inputText> has attribute for it validatorMessage="" or requiredMessage=""(required message is displayed if field is required but not filled) if your error appear in converter you can also use converterMessage=""

ps. Feel free to use localized strings in it.

Milkmaid
  • 1,589
  • 3
  • 24
  • 37