I was not able to unserstand from where and how the error message got printed when you click the button by givin input text length less than 2 or greater than 10. Any ideas, links, sample code, resources highly appreciated. thanks in advance
I was not able to understand from where the text of the error message coming. I checked facess config as well as mesages files. None of them has the text. Does the it is showing default text message. If that is the case where can i find all those default text messages. Please advise
The range validation error message template is contained within the validator's own source code, although you can provide overrides.
In the case of that particular error, the validator does a message Format operation to create a message from the template with the range constraints plugged in, then throws a ValidationException where the Exception message text is the message that was just created. The JSF framework catches it and adds it to the messages container and the JSF message elements select it and format it for display.
I'm going to be a "small government" candidate. I'll be the government. Just me. No one else.