Results 1 to 2 of 2

Thread: select.tagx always being set

  1. #1
    Join Date
    Feb 2011
    Posts
    2

    Default select.tagx always being set

    When using a select.tagx (combobox / FilteringSelect) we are unable to have a field not be set. These fields are not required for our domain objects, but once we have available options in the combobox we are not able to send a <null> value to the server for that field.

    With disableFormBinding set to true, we tried to add an extra option. When we tried this we were unable to set the default selected value. The dijit is looking for
    Code:
    <option ... selected>value</option>
    But if it doesn't look like
    Code:
    <option .. selected="selected">value</option>
    spring starts to throw stack traces.
    Code:
    org.apache.jasper.JasperException: /WEB-INF/tags/form/fields/select.tagx(63,65) Attribute name "selected" associated with an element type "option" must be followed by the ' = ' character.

    How can we make a combobox not required?

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Please take a look at the comments in https://jira.springsource.org/browse/ROO-581. There are a number of approaches explained which should help you.
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

Posting Permissions

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