posted 13 years ago
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.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.