views:

35

answers:

1

Can you suggest good practices for information related to validation messages in the user interface. Assuming you have a the following tables (User, Address, Email) and we use JPA to model our entities and the underlying validation provider is Hibernate.

The default messages which are throws when a value is empty or incorrect is either validator.required=value is required validator.notNull=may not be null

It would be ideal to provide user friendly messages like.

Enter your password here Enter your first name Enter the city name City name cannot contain numerical characters

Any suggestions on web sites which already do this or a set of grammatically correct sample messages for the exisiting default keys shipped as part of hibernate validator jar will be useful.

+3  A: 

I found this link from www.SmashingMagazine.com to be an excellent article on error messages, validation and other aspects of providing feedback to your site users.

Kane