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

Radiobutton/Checkboxes tag doesn't utilize ConversionService for label rendering [SPR-7174] #11833

Closed
spring-projects-issues opened this issue May 5, 2010 · 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

Johnny Zhou opened SPR-7174 and commented

In version 3.0.2, the AbstractMultiCheckedElementTag.java line 291:
tagWriter.appendValue(label.toString());

This line cannot take the advantage of spring conversion service. We should change to the following:
PropertyEditor editor = (value != null ? this.getBindStatus().findEditor(value.getClass()) : null);
String displayString = getDisplayString(label, editor);
tagWriter.appendValue(displayString);


Affects: 3.0.2

Attachments:

Referenced from: commits 48869a8, 8ccd74b

@spring-projects-issues
Copy link
Collaborator Author

Johnny Zhou commented

Sorry, the line should be:
PropertyEditor editor = (label != null ? this.getBindStatus().findEditor(label.getClass()) : null);

@spring-projects-issues
Copy link
Collaborator Author

Johnny Zhou commented

search "//Johnny: use convertion service to get label" to get the changes

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Good point - I've adapted that label rendering code accordingly for Spring 3.0.3.

This will be available in tomorrow's 3.0.3 snapshot. Feel free to give it an early try...

Juergen

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