I am trying to show a checkbox that is bound to a boolean property. Currently I have in my model:
@XmlBinding(path = "use-authentication")
@Label(standard = "Use Authentication")
ValueProperty PROP_USE_AUTHENTICATION =
new ValueProperty(TYPE, "UseAuthentication");
Value<Boolean> getUseAuthentication();
void setUseAuthentication(Boolean value);
And in my sdef:
<property-editor>
<hint>
<name>checkbox.layout</name>
<value>trailing.label.idented</value>
</hint>
<property>UseAuthentication</property>
</property-editor>
However, the field is still shown as a text box. What am I missing?
EDIT: Found out myself what I was missing.
I was missing the following in my model:
@Type(base = Boolean.class)
[Updated on: Wed, 22 February 2017 09:52]
Report message to a moderator