Announcement Announcement Module
Collapse
No announcement yet.
select.tagx always being set Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment

    Working...
    X