This content has been marked as final.
Show 2 replies
-
1. Re: Changeing Validation Messages
eirirlar May 1, 2007 3:49 PM (in response to paradigmza)Have the exact same problem. @NotNull(message="blah") doesn't work.
Does anyone know if referring to the messages.properties-file in the message attribute of @NotNull should work? Like this:
@NotNull(message="#{messages.notnullerror}") -
2. Re: Changeing Validation Messages
knaas May 1, 2007 4:34 PM (in response to paradigmza)For the hibernate validator, message keys should not be demarcated with "#{}". Simply drop the "#".
@NotNull(message="{messages.notnullerror}")