| NetUI Tag Library Documentation (Version 1.0.2) | ||||||
DETAIL: Syntax | Description | Attributes | Example | Tag Info |
FRAMES NO FRAMES |
Renders a single <option> tag.
Syntax |
<netui:selectOption
[dir="string_dir"]
[disabled="boolean_disabled"]
[lang="string_lang"]
[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"]
[repeatingType="string_repeatingType"]
[style="string_style"]
[styleClass="string_styleClass"]
[tagId="string_tagId"]
[title="string_title"]
value="string_or_expression_value" >
... JSP content ...
</netui:selectOption>
Description |
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[], HashMap
,
or any object that implements Map
.
Attributes | ||
dir |
Specifies the direction of text. ( LTR | RTL ) |
|
disabled |
Boolean value that determines whether the <option> is disabled. |
|
lang |
Sets the language code for the base language of an element's attribute values and text content. |
|
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. |
|
repeatingType |
If the selectOption tag is being used inside a repeating Select, this defines the Select attribute used to generate the option elements. Values are "option", "dataSource", "default", (for optionsDataSource, dataSource, and defaultValue attributes respectively) and "null". |
|
style |
Specifies style information for the current element. |
|
styleClass |
The style class (a style sheet selector). |
|
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: lookupIdByTagId( "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[lookupIdByTagId( "bar", this )] To retreive the value entered into a <netui:textBox> within the <netui:form> tag, use the following JavaScript expression. document[lookupIdByTagId("bar", this)][lookupIdByTagId("foo", this)].value The second parameter ensures that the JavaScript function
begins its search within the correct Portlet scope. Pass the
JavaScript keyword |
|
title |
The title. |
|
value |
A literal or a data binding expression that determines the value submitted by the <option> tag. |
Example |
The following sample generates a set of <option> tags.
<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>
Tag Information | |
Tag Class | org.apache.beehive.netui.tags.html.SelectOption |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |
|
||||||
DETAIL: Syntax | Description | Attributes | Example | Tag Info |
FRAMES NO FRAMES |