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,082,665
  • 372
  • 3,610
  • 3,555
Kims
  • 405
  • 1
  • 5
  • 15

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,659
  • 4
  • 26
  • 39