Combobox is a combination of a drop-down list or list box and a single-line textbox, allowing the user either to choose from the list of existing options.
Combobox tag is "combobox"
i.e.
<comp:combobox name="number_of_employees"/>
A combobox is a subclass of __ItemListComponent, which is compound by a list of __ItemComponent instances. A __ItemComponent is a component containing a pair text, value.
We can setup the combobox items by ussing the "item" tag:
i.e.
<comp:combobox name="number_of_employees">
<comp:item value="1" text="1 to 10"/>
<comp:item value="2" text="11 to 20"/>
<comp:item value="3" text="21 to 50"/>
<comp:item value="4" text="more than 50"/>
</comp:combobox>
We can also setup a combobox within the eventhandler code (typically within the beforeRender (each time the view is rendered) or within the component create event (once the component is created).
Default events associated to a combobox are the same as associated to a html select element. Most usefull is the change event, raised when the user change the selection.