Possible Duplicate:
What are the i18n message ids for field infos and errors?
Using Annotations like @Required
on a @Entity
-class, a message attribute can be set easily. But how to set / overwrite the "Invalid value" message that is shown when a member of type Double is filled with a string on the form?
The form.errors()
-map contains an error with key "field name" and value "error.invalid", but I can't figure out the correct key to use in the messages file to overwrite the default message.