Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to define DataSourceField to get ChackBoxItem for Boolean field

    Hello,

    is there a way I can define a field in the datasource, so that the EditorItem is an CheckBoxItem?
    If I use
    Code:
     <field name="foo" type="boolean" />
    the field is rendered as BooleanItem, whhich does not allow null values. But the property of the entity field is defined as java.lang.Boolean, which allows null-values.
    Last edited by andy.2003; 19 Oct 2012, 09:27.

    #2
    btw. I found out, that java.lang.Boolean fields are only access throught the get<fieldname> Method and not throught the is<fieldname> Method, which would also be Java-Bean confom.
    Last edited by andy.2003; 19 Oct 2012, 09:27.

    Comment

    Working...
    X