-
1. Re: Custom set of messages for Hibernate Validator annotations
schlegel Apr 19, 2008 2:08 PM (in response to bzelenkapic)Hi
Do you have included the resource bundle in the resource loader in components.xml?
<core:resource-loader> <core:bundle-names> <value>messages</value> <value>ValidatorMessages</value> </core:bundle-names> </core:resource-loader>
-
2. Re: Custom set of messages for Hibernate Validator annotations
quaidbrown Apr 21, 2008 11:36 PM (in response to bzelenkapic)I'm trying to figure out how to make this ValidatorMessages thing work also... is there documentation on it?
I found this page that mentions it:
But I'm not sure what it is or where it is or how to use it. Any help would be appreciated.
-
3. Re: Custom set of messages for Hibernate Validator annotations
bzelenkapic Apr 23, 2008 7:47 PM (in response to bzelenkapic)Hans,
Thanks for the tip I missed to include the resource bundle in the resource loader. It's interesting that Seam is trying to resolve the key from registered resource bundles; you are not limited to ValidatorMessages.properties as I was mislead by Hibernate validator documentation. And of course watch out for encoding of yours properties files, it has to be ISO 8859-1 character encoding ;). See details in Properties API.Regards,
Boris Zelenkapic