| NetUI Tag Library Documentation (Version 1.0.2) | ||||||
DETAIL: Syntax | Description | Attributes | Example | Tag Info |
FRAMES NO FRAMES |
Associates text with an input element in a <netui:form>.
Syntax |
<netui:label
[defaultValue="string_or_expression_defaultValue"]
[dir="string_dir"]
[escapeWhiteSpaceForHtml="boolean_escapeWhiteSpace"]
[for="string_forAttr"]
[formatDefaultValue="boolean_formatDisplay"]
[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"]
[style="string_style"]
[styleClass="string_styleClass"]
[tagId="string_tagId"]
[title="string_title"]
value="string_or_expression_output" >
... JSP content ...
</netui:label>
Description |
Attributes | ||
defaultValue |
The String literal or expression to be used as the default output. If the default value is an expression all formatters will be applied, otherwise the default value will be output without being formatted. |
|
dir |
Specifies the direction of text. ( LTR | RTL ) |
|
escapeWhiteSpaceForHtml |
Sets a boolean flag indicating if we will escape white space for HTML. |
|
for |
The value of this attribute matches a tagId on an form input and links the value to that control. |
|
formatDefaultValue |
Boolean indicating whether the formatter should be applied to the defaultValue. The default is "false" meaning formatters will not be applied. |
|
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. |
|
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 |
The String literal or expression used as the text of the Label. |
Tag Information | |
Tag Class | org.apache.beehive.netui.tags.html.Label |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |
|
||||||
DETAIL: Syntax | Description | Attributes | Example | Tag Info |
FRAMES NO FRAMES |