Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Direct field access in Spring MVC 3


I would like to use direct field access for "command objects" in Spring MVC 3.
Is there an equivalent of useDirectFieldAccess() method for annotated controllers?
I wasn't able to find anything in the documentation.

like image 905
prasopes Avatar asked Dec 12 '10 16:12

prasopes


1 Answers

You can use the @InitBinder annotation on a controller method, and then initDirectFieldAccess on the recived WebDataBinder, documentation is here.

like image 89
Zoran Regvart Avatar answered Nov 05 '22 18:11

Zoran Regvart