Skip to content
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

Open
eclipse-faces-bot opened this issue Nov 12, 2009 · 15 comments
Open

Standard messages for LengthValidator are confusing #668

eclipse-faces-bot opened this issue Nov 12, 2009 · 15 comments

Comments

@eclipse-faces-bot
Copy link

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]

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
Reported by cayhorstmann

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Prepare to delete "spec" subcomponent.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
cat1

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
frame

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
These are valid 2.0 Rev a issues

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
take ownership.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Fix checked in.

I used http://babelfish.yahoo.com/translate_txt and
http://rishida.net/tools/conversion/ to get the unicode characters for
the non-latin character sets. Thanks to ianp on #xjava on irc.freenode.net.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
rogerk said:
changelog

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
rogerk said:
Reopening as Chinese file contains bad characters for LengthValidator message.
We will have run this by the L10N team to do this right.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
rogerk said:
Created an attachment (id=288)
Restored Changes

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
File: changebundle.txt
Attached By: rogerk

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
rogerk said:
triage

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-668

@eclipse-faces-bot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant