Renders a single <option> tag.
<netui:selectOption
[disabled="boolean_disabled"]
[id="string_id"]
[onClick="string_onClick"]
[onDblClick="string_onDblClick"]
[onKeyDown="string_onKeyDown"]
[onKeyPress="string_onKeyPress"]
[onKeyUp="string_onKeyUp"]
[onMouseDown="string_onMouseDown"]
[onMouseMove="string_onMouseMove"]
[onMouseOut="string_onMouseOut"]
[onMouseOver="string_onMouseOver"]
[onMouseUp="string_onMouseUp"]
[style="string_Style"]
[styleClass="string_Class"]
[tabindex="string_tabIndex"]
[tagId="string_tagId"]
value="string_or_expression_value" />
The <netui:selectOption> must have a parent <netui:select> tag.
To dynamically generate a set of <option> tags, point the <netui:select> tag at a String[], java.util.HashMap , or any object that implements java.util.Map .
disabled | Boolean. Determines whether the <option> is disabled. | ||||||
|
|||||||
|
|||||||
id | The id attribute is deprecated, use the tagId attribute instead. The id attribute of the rendered HTML tag. You should use the tagId attribute which will encode the id correctly for containers such as the Portal which needs to rewrite id's to make them unique. | ||||||
|
|||||||
|
|||||||
onClick | The onClick JavaScript event. | ||||||
|
|||||||
|
|||||||
onDblClick | The onDblClick JavaScript event. | ||||||
|
|||||||
|
|||||||
onKeyDown | The onKeyDown JavaScript event. | ||||||
|
|||||||
|
|||||||
onKeyPress | The onKeyPress JavaScript event. | ||||||
|
|||||||
|
|||||||
onKeyUp | The onKeyUp JavaScript event. | ||||||
|
|||||||
|
|||||||
onMouseDown | The onMouseDown JavaScript event. | ||||||
|
|||||||
|
|||||||
onMouseMove | The onMouseMove JavaScript event. | ||||||
|
|||||||
|
|||||||
onMouseOut | The onMouseOut JavaScript event. | ||||||
|
|||||||
|
|||||||
onMouseOver | The onMouseOver JavaScript event. | ||||||
|
|||||||
|
|||||||
onMouseUp | The onMouseUp JavaScript event. | ||||||
|
|||||||
|
|||||||
style | The style of the rendered HTML tag. | ||||||
|
|||||||
|
|||||||
styleClass | The class of the rendered HTML tag. | ||||||
|
|||||||
|
|||||||
tabindex | The tabIndex of the rendered HTML tag. This attribute determines the position of the tag in the sequence of page elements that the user may advance through by pressing the TAB key. | ||||||
|
|||||||
|
|||||||
tagId | String value. Sets the For example, assume that some tag's <netui:textBox tagId="foo" /> Then the following JavaScript function will return the real id attribute rendered in the browser: getNetuiTagName( "foo", this ) To get a <netui:form> element and all of its children elements in JavaScript, use
the same JavaScript function <netui:form tagId="bar" > Then the following JavaScript function will return the <netui:form> element and its children (packaged as an array). document[getNetuiTagName( "bar", this )] To retreive the value entered into a <netui:textBox> within the <netui:form> tag, use the following JavaScript expression. document[getNetuiTagName("bar", this)][getNetuiTagName("foo", this)].value The second parameter ensures that the JavaScript function
begins its search within the correct Portlet scope. Pass the
JavaScript keyword |
||||||
|
|||||||
|
|||||||
value | A literal or a data binding expression that determines the value submitted by the <option> tag. | ||||||
|
|||||||
|
<netui:form action="submit"> <netui:select dataSource="{actionForm.selections}" size="5"> <netui:selectOption value="red" /> <netui:selectOption value="blue" /> <netui:selectOption value="green" /> <netui:selectOption value="yellow" /> <netui:selectOption value="orange" /> </netui:select> <netui:button type="submit" value="Submit"/> </netui:form>
[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui/select/