Antonio Gallardo wrote:
Hi:
Recently we needed render some boolean widgets as a combobox with 2 posible values: Yes or No.
I ask to the list if this change can be useful to integrate it to the
woody sample stylesheet. Currently boolean fields can be only rendered as
checkboxes.
The solution to this is to use a <wd:field> of type boolean with a selection list.
And here is the sample:
<wd:field id="myBoolean">
<wd:datatype base="boolean"/>
<wd:selection-list>
<wd:item value="true">
<wd:label><i18n:text key="yes"/></wd:label>
</wd:item>
<wd:item value="false">
<wd:label><i18n:text key="no"/></wd:label>
</wd:item>
<wd:item value="">
<wd:label><i18n:text key="noanswer"/></wd:label>
</wd:item>
</wd:selection-list>
</wd:field>Vadim
