Results 1 to 2 of 2

Thread: SWF binding & conversion of fields - checkboxes tag

  1. #1
    Join Date
    Mar 2008
    Location
    Belgium
    Posts
    6

    Default SWF binding & conversion of fields - checkboxes tag

    Hi,

    We decided to use BusinessTypes in our application these are types containing some formatting and validation logic. On our Model (form) we use only businessTypes (own types). This works fine since that spring can convert values from/to those types.

    However we have a problem with the usage of the checkboxes tag. In our jsp we have the following element:
    <form:checkboxes path="field1" items="${officetypes}"/>

    The items is a List of businessTypes. for those the converters are executed correctly

    Our model has the following field :
    private List<OfficeType> field1 = new ArrayList<OfficeType>();

    In case we submit the form and bind in this case field1 to our model , the converters are not executed ! The submitted values (Strings) are not converted to an OfficeType. Is there a way to provide correct conversion here?

    Thanks a Lot
    Axel

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    This is a bug in 2.0.5 which has been fixed in the webflow-2.0 maintenance branch and will be available in 2.0.6.

    Keith
    Keith Donald
    Core Spring Development Team

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •