Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom DataBinder Hook [SPR-6534] #11200

Closed
spring-projects-issues opened this issue Dec 8, 2009 · 3 comments
Closed

Custom DataBinder Hook [SPR-6534] #11200

spring-projects-issues opened this issue Dec 8, 2009 · 3 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Dec 8, 2009

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:

Referenced from: commits 1e1964a

@spring-projects-issues
Copy link
Collaborator Author

Pavel Müller commented

I'd prefer this issue to be resolved in 3.0 GA rather then later. For us it's a blocker to migrate to Spring 3.0

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

I've reintroduced the createBinder template method in AnnotationMethodHandlerAdapter. Overriding createBinder should work again now, even in binary compatible form (e.g. with precompiled Spring 2.5 extensions).

This will be available in the next snapshot. I'll post the URL once it is available.

Juergen

@spring-projects-issues
Copy link
Collaborator Author

Pavel Müller commented

Thank you. This solution great. Better than I expected :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants