-
May 4th, 2006, 05:53 AM
#1
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
#2
Sure. Checkout http://www.springframework.org/docs/...ionEditor.html.
IIRC you need to overwrite convertElement.
-
May 4th, 2006, 06:25 AM
#3
-
May 4th, 2006, 08:04 AM
#4
Exactly what i was looking for. Thanks!
-
May 4th, 2006, 08:15 AM
#5
My pleasure
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules