May 4th, 2006, 05:53 AM
PropertyEditor for Collection instead of Object
Has anyone experience with working with Collections (Lists or Sets, or Maps) in property editors the same way, as Spring works with String arrays while binding checkboxes?
I want to have an empty Collection in my command object, which will be automatically filled with necessary objects (using my custom propertu editors) while binding process. I don't want to prepopulate this Collection with any items (except selected ones, when working with checkboxes).
May 4th, 2006, 06:19 AM
Sure. Checkout http://www.springframework.org/docs/...ionEditor.html.
IIRC you need to overwrite convertElement.
May 4th, 2006, 06:25 AM
May 4th, 2006, 08:04 AM
Exactly what i was looking for. Thanks!
May 4th, 2006, 08:15 AM