[jboss-user] [JBoss Seam] - Re: i18n entity validation message?
smies
do-not-reply at jboss.com
Wed Aug 16 17:47:29 EDT 2006
I found this in the Hibernate Validator chapter of the Hibernate Annotations documentary.
anonymous wrote : 4.1.3. Error messages
|
| Hibernate Validator comes with a default set of error messages translated in a few languages (if yours is not part of it, please sent us a patch). You can override those messages by creating a ValidatorMessages.properties or (ValidatorMessages_loc.properties) out of org.hibernate.validator.resources.DefaultValidatorMessages.properties and change the appropriate keys. You can even add your own additional set of messages while writing your validator annotations.
|
| Alternatively you can provide a ResourceBundle while checking programmatically the validation rules on a bean.
You can find the complete chapter here:
http://www.hibernate.org/hib_docs/annotations/reference/en/html/validator.html.
I hope this helps you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965586#3965586
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965586
More information about the jboss-user
mailing list