This tag creates a hidden inputbox or select box, or multiple checkboxes, depending on the attribute input. If only one collection exists, the tag will create a hidden inputbox by default.
The CollElem tag uses the following attributes:
Name- Specifies the name of the form element created. The default is c.
Items (Optional) - A comma-delimited string representing search collections available. The tag retrieves all collections available on the server if the attribute is empty.
Type (Optional) - The type of form element used for displaying collections. Valid options are hidden, select, and checkbox. The default value is hidden if one collection exists, and checkbox if there are multiple collections.
Rows (Optional) - Represents size if the type is select, or the number of rows. The default behavior is to satisfy the Cols attribute first. That is, the collections will be listed in columns as specified by the Cols attribute.
Cols - Represents number of columns and is only required if type is checkbox. If Cols and Rows are not specified, the collections will be listed horizontally.
Defaults - Specifies a comma-delimited string containing 1s or 0s indicating the selection status of the search collections. An item is selected if the setting is 1, and not selected if the setting is 0. If there is a form action exists , these values will be retrieved from the form elements.
cssClass (Optional) - The class name used in every HTML tag created in this tag. This attribute is particularly useful when the type is checkbox, since an HTML table is used for the layout. See the sample code for details.
<s1ws:collElem type="checkbox" cols="2" values="1,0,1,0" cssClass="body" />
This example creates checkboxes in 2 columns with a default name c with the first and third items selected. Fonts and any other HTML styles are defined in the css class body, which includes tr.body, td.body, and input.body.