Im just trying to implement my first SimpleForm with Validation. Almost working but in my Validator Im adding code of the form:
This error code doesnt map to anything and although ive provided a default message it doesnt like it
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.
errors.rejectValue("description",null,"This value cannot be left blank"); errors.rejectValue("description","ERR1","This value cannot be left blank");
org.springframework.context.NoSuchMessageException: No message found under code 'null.DataItem.description' for locale 'en_GB'.