Custom DataBinder Hook [SPR-6534] #11200
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Pavel Müller opened SPR-6534 and commented
I'm migrating our project to Spring 3.0. Most of the issues is resolved but one of them not.
We used to create our own custom DataBinder in a AnnotationMethodHandlerAdapter subclass. We used to override the createBinder() method and created our own DataBinder implementation there.
How to achieve the same in Spring 3.0. The createBinder() method disappeared.
I think this issue hurts backwards compatibility too. Our project has a lot of following methods:
@InitBinder
public void initBinder(MyDataBinder binder) {
...define custom editors here.
}
We use custom data binder to specify empty values for bound fields as well as allowed fields and other things.
Affects: 3.0 RC1, 3.0 RC2, 3.0 RC3
Reference URL: http://forum.springsource.org/showthread.php?t=81209
Issue Links:
@MVC
should provide a way to invoke custom code at preBind stageReferenced from: commits 1e1964a
The text was updated successfully, but these errors were encountered: