Hi,
I have a form in a web flow that is backed by a JavaBean with nested properties. I'm trying to add a validation message to one of the nested properties but it is not showing up.
I'm using the following code to add the message:
Is it possible to specify messages for nested properties?Code:MessageResolver messageResolvable = new MessageBuilder().error() .source("emailAddressFormBean.emailAddress") .code("userRegistration.emailAddress.not.unique") .build(); requestContext.getMessageContext().addMessage(messageResolvable);
The error message is making it to the form because it shows up inside a <form:errors path="*" /> tag, but not against the actual nested property in the form.


Reply With Quote