Issue Details (XML | Word | Printable)

Key: SPR-6505
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Juergen Hoeller
Reporter: Daniel IfCore
Votes: 0
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Spring Framework

form:checkboxes doesn't use spring 3 converters for items comparison

Created: 03/Dec/09 08:42 AM   Updated: 14/Feb/10 06:18 PM   Resolved: 14/Feb/10 06:18 PM
Component/s: SpringWEB
Affects Version/s: 3.0 RC3
Fix Version/s: 3.0.1

Time Tracking:
Not Specified

File Attachments: 1. Java Archive File converter-demo.jar (10 kB)

Issue Links:
Related
 


 Description  « Hide

It seems that form:checkboxes only uses converters for the path-elements of the model but not for the items-elements. Having the same list of beans in the items property and the path property does not generate any selected checkboxes.



Juergen Hoeller added a comment - 03/Dec/09 06:53 PM

Could you please give a concrete example for form:checkboxes usage that doesn't work in such a case? I'm having trouble reproducing this...

Juergen


Daniel IfCore added a comment - 08/Dec/09 03:01 PM

Here is a demo project which demonstrates the problem. As you can see from the log the correct objects are created but the checkboxes tag is unable to compare the selected values.
I would expect the checkboxes tag to use the converter to generate a string representation of the object and use it for comparison.


Juergen Hoeller added a comment - 14/Feb/10 06:18 PM

Fixed along with SPR-6799: Converter/Formatter lookup had an issue in the multi-list case.

Juergen