Im just trying to implement my first SimpleForm with Validation. Almost working but in my Validator Im adding code of the form:
Code:
errors.rejectValue("description",null,"This value cannot be left blank");
errors.rejectValue("description","ERR1","This value cannot be left blank");
This error code doesnt map to anything and although ive provided a default message it doesnt like it
Code:
org.springframework.context.NoSuchMessageException: No message found under code 'null.DataItem.description' for locale 'en_GB'.
Whilst I think having error codes is an excellant idea I cant quite see what I am meant to do to set them up do I creates a MessageCoderesolver or something.
[/code]