To be clear on this, following code is an example.
A.class
Code:
...
Collection<B> bbb;
...
B.class
Code:
...
List<
String> ccc;
...
Note that each bean has a corresponding custom validation class begins with V.
Code:
String oldPath = errors.getNestedPath();
errors.setNestedPath(oldPath + "bbb"); // is this correct?
// run the validation
...
// reset the old path
errors.setNestedPath(oldPath);
Then whenever the validation is invoked, there is an error message shown on the console. I think this is because Spring Framework cannot correctly pass the "bbb.ccc" because bbb is a Collection type defined in A.class.
Also note that if the bbb is not a collecton type, everything works fine.
Need helps on this touch question.
Thanks,
Jiafan
SCJP, SCJD, SCWCD, SCBCD, SCEA