options - Nested Extension - Render a Collection of Select Options

This tag is an extension of the <html:options> tag. Please consult its documentation for information on tag attributes and usage details.

Note: The nested context of this tag relies on the use of the "property" property, and the internal use of the "name" property. The nested tags rely on these properties and will attempt to set them itself. The <html:options> tag this tag extended allows other options for the tag which don't use these properties. To take advantage of these options, markup using the <html:options> tag instead of the nested tag.

For example, the "collections" option allows you to specify a separate bean reference which itself is a list of objects with properties to access the title and value parts of the html option tag. You can use this in a nested context (the list is a property of a nested bean) by using the nested define tag and the original options tag.

                        <nested:nest property="myNestedLevel" />
                        <nested:define property="collectionList" />
                        <html:options collection="collectionList"
                        property="labelProperty"
                        valueProperty="valueProperty" />
                        </nested:nest >
                    
Attribute Name Description
collection [RT Expr]
filter [RT Expr]
labelName [RT Expr]
labelProperty [RT Expr]
name [RT Expr]
property [RT Expr]
style [RT Expr]
styleClass [RT Expr]