This content has been marked as final.
Show 2 replies
-
1. Re: can i change the name of the ValidationMessages.properties to any name i want? if yes, HOW?
iabughosh Jul 3, 2011 2:25 AM (in response to mohammad-noor)yes you can, by adding the following class to your class path org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator,
this class must implements javax.validation.MessageInterpolator, you can override the constructors and these two methods :
public String interpolate(String message, Context context)
public String interpolate(String message, Context context, Locale locale)
where context of type javax.validation.MessageInterpolator.Context.
regards.
-
2. Re: can i change the name of the ValidationMessages.properties to any name i want? if yes, HOW?
mohammad-noor Jul 3, 2011 6:37 AM (in response to iabughosh)Thanks so much Ibrahim, thats work fine with me
Regards