-
Couldn't load subscription status.
- Fork 38.8k
Description
Lukas Kalinski opened SPR-9705 and commented
Shortly put: having the WebDataBinder to call initDirectFieldAccess() will result in failure of resolving nested paths (i.e., if class A has a member of type/class B, then referencing that member will throw a NotReadablePropertyException).
I would suggest that you visit the following page for a detailed explanation of the problem.
http://forum.springsource.org/showthread.php?112464-Direct-Field-Access-Probelm
Both me and the poster in the link above have noticed that in org.springframework.beans.DirectFieldAccessor, no recursive calls to get properties of properties are made, and therefore it's not very surprising (anymore) that this just don't work.
I've set the priority to "critical" (even if it in fact is kind of a blocker for me, as I refuse to use property access).
Anyway, thank you for a great framework!
Kind regards,
Lukas, Sweden
Affects: 3.1.2
Issue Links:
- JSR-303 validation doesn't work with nested properties in case of direct field access [SPR-10623] #15251 JSR-303 validation doesn't work with nested properties in case of direct field access
- Make initDirectFieldAccess work with array, List and Map [SPR-12805] #17402 Make initDirectFieldAccess work with array, List and Map
- DirectFieldBindingResult should support autoGrowNestedPaths [SPR-8692] #13334 DirectFieldBindingResult should support autoGrowNestedPaths
Referenced from: commits 8221c9a
10 votes, 11 watchers