New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standard messages for LengthValidator are confusing #668
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented I used http://babelfish.yahoo.com/translate_txt and |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
Section 2.5.2.4 of the JSF spec lists the standard error messages for the length
validator as
javax.faces.validator.LengthValidator.MAXIMUM –
{1}: Validation Error: Value is
greater than allowable maximum
of ‘’{0}’’
javax.faces.validator.LengthValidator.MINIMUM – {1}
: Validation Error: Value is
less than allowable minimum of
‘’
{0}
’’
Suppose I set a minimum length of 5 for a zip code, and the user enters 9410.
The message
Validation Error: Value is less than allowable minimum of ‘5’
is not likely to be comprehensible to the average user--after all, 9410 is
larger than 5.
Suggestion: Change to
Validation Error: Length is less than allowable minimum of 5.
Environment
Operating System: All
Platform: All
Affected Versions
[2.0]
The text was updated successfully, but these errors were encountered: