Allows the user to choose one or more selections from a list of pre-defined items (see the spec). The list of pre-defined items can be specified by either item (see the spec) or itemset (see the spec) elements. You can visually group these pre-defined items by using the choices (see the spec) element to contain them. Note, some representations of the select element do not support visual grouping.
open and closed, default is closed.
true
The select element can be bound to a node containing simple content capable of holding a sequence. The data binding restriction to simple content may be relaxed when an itemset element is used, which allows the available choices to be obtained from an XForms Model. The relaxation happens when the itemset element specifies the item value using a copy (see spec) element. This is because a copy element can be used to add a subtree of nodes underneath the element that the select control is bound to.
The XForms select element can be represented by the following widgets for the specified appearance attribute values:
appearance = 'full' (xhtml/xul)
Displaying a listbox is the default representation (xhtml/xul).
Characteristics
choices element isn't implemented
incremental attribute value is false, the bound node is updated when the select control is blurred (i.e. loses focus), otherwise it is updated upon item selection
The select is represented as group of checkboxes (xhtml/xul).
Characteristics
appearance attribute contains the value full
choices element is supported
incremental attribute value is false then bound node is updated when item is blurred
<xf:model>
<xf:instance>
<data xmlns="">
<values>g</values>
</data>
</xf:instance>
</xf:model>
<xf:select ref="/data/values" appearance="full">
<xf:choices>
<xf:label>Green colors</xf:label>
<xf:item>
<xf:label>Pale green</xf:label>
<xf:value>pg</xf:value>
</xf:item>
<xf:item>
<xf:label>Green</xf:label>
<xf:value>g</xf:value>
</xf:item>
</xf:choices>
<xf:choices>
<xf:label>Red colors</xf:label>
<xf:item>
<xf:label>Red</xf:label>
<xf:value>r</xf:value>
</xf:item>
<xf:item>
<xf:label>Magenta</xf:label>
<xf:value>m</xf:value>
</xf:item>
</xf:choices>
</xforms:select>
Page last modified 10:14, 24 Jan 2008 by Surkov.alexander?