This section provides an example of how to bind data to a select widget.
To define data structure
1 If you get data from context:
You need to specify data structure as following, an IndexedCollection data which includes a KeyedCollection Data, then there are two fields, field labelselect is for lable of select widget, field valueselect is for value of select widget.
Every IndexedCollection data must have at least one kColl data type as a root data container.
Specify the submitted data for the select widget. For example, it can be selectData.selectName.
2 If you get data from list files: You need to create a new javascript file in your project directory /WebContent/listFiles, for example: normal.js, the content is like:
3 Specify properties for select widget. To get data from list files, specify a value for urlForList; to get data from context data, specify a value for dataNameForList, labelField and valueField. Specify dataName for either of the two modes, which is the submitted value for select widget.