JSR-303 validation doesn't work with nested properties in case of direct field access [SPR-10623] #15251
When I use org.springframework.validation.Validator, the IllegalStateException is thrown.
The javax.validation.Validator works correctly.
Look at attached JUnit-test ( also as an maven project in attachement ).
Referenced from: commits bc71488
1 votes, 6 watchers
The text was updated successfully, but these errors were encountered:
Juergen Hoeller commented
This seems to refer to a general limitation with Spring's direct field access: It doesn't come with support for nested properties. We rather 'insist' on accessor methods for such a scenario; we intend to revisit this for 4.1.
For the time being, since you have accessor methods anyway, have you tried regular bean property binding? That should work fine in your scenario.