Results 1 to 5 of 5

Thread: PropertyEditor for Collection instead of Object[]

  1. #1
    Join Date
    Jul 2005
    Location
    Russia
    Posts
    118

    Default 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).

  2. #2
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    Sure. Checkout http://www.springframework.org/docs/...ionEditor.html.

    IIRC you need to overwrite convertElement.

  3. #3
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    Found the link I was looking for :http://www.jroller.com/page/raible?e...ith_spring_mvc

  4. #4
    Join Date
    Jul 2005
    Location
    Russia
    Posts
    118

    Default

    Exactly what i was looking for. Thanks!

  5. #5
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    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
  •