I'm using Springs annotations based form validation (mainly @NotBlank and @Length) which works great. I'm passing the formbean into the validation method like so:
validate(formBean, result);
I have several annotations attached to various form fields which are validating as expected apart from one.
One of my fields in the form bean is declared like so:
private EntriesBean entries;
This field obviously refers to a bean which has the usual getters and setters. A couple of the fields within this bean also have the validation annotations attached but they do not validate as part of the validate() method call like the other fields do. Is this something to do with this bean being referred to from another bean rather than directly from the method that calls validate() ?
Thanks