Generates styled text based on a String literal or data binding expression.
Generates styled text based on a String literal or data binding expression.
The following table shows how the <netui:label> and <netui:content> tags treat HTML-sensitive characters.
dataformatas | The data format of the output. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
defaultValue | A literal or data binding expression default value that will be used
in the event that the value attribute resolves to NULL.
If the defaultValue is an expression, then any
format tags (<netui:formatString>, etc.) will be applied to the value.
If the defaultValue is not an expression,
format tags will not be applied.
If the defaultValue contains an entity string, such as " ",
then the default value is output without applying any escaping to it. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | Read Only |
|
|
escapeWhiteSpaceForHtml | Boolean. If set to true, white space will be escaped before it is output to the page. Default value is false. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
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. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
onClick | The onClick JavaScript event. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | Yes | No |
|
|
onDblClick | The onDblClick JavaScript event. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | Yes | No |
|
|
onKeyDown | The onKeyDown JavaScript event. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | Yes | No |
|
|
onKeyPress | The onKeyPress JavaScript event. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | Yes | No |
|
|
onKeyUp | The onKeyUp JavaScript event. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | Yes | No |
|
|
onMouseDown | The onMouseDown JavaScript event. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | Yes | No |
|
|
onMouseMove | The onMouseMove JavaScript event. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | Yes | No |
|
|
onMouseOut | The onMouseOut JavaScript event. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | Yes | No |
|
|
onMouseOver | The onMouseOver JavaScript event. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | Yes | No |
|
|
onMouseUp | The onMouseUp JavaScript event. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | Yes | No |
|
|
style | Sets the style of the rendered HTML tag. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
styleClass | The class of the rendered HTML tag. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
tabindex | The tabIndex of the rendered HTML tag. This attribute determines the position of the
rendered HTML tag in the sequence of tags that the user may advance through by pressing the TAB key. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
tagId | String value. Sets the id (or name ) attribute of the rendered HTML tag.
Note that the real id attribute rendered in the browser may be
changed by the application container (for example, Portal containers may change
the rendered id value to ensure the uniqueness of
id's on the page). In this case, the real id rendered
in the browser may be looked up
through the JavaScript function getNetuiTagName( tagId, tag ).
For example, assume that some tag's tagId attribute is set to foo .
<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 getNetuiTagName( tagId, tag ) . For example,
assume that there is a <netui:form> whose
tagId attribute is set to bar .
<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 this as the second parameter.
For detailed information on using the function
getNetuiTagName( tagId, tag ) see
Using JavaScript in Page Flow and Portal Applications. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | Yes | No |
|
|
value | A literal or data binding expression. |
|
Required | Supports runtime expression evaluation | Data bindable |
Yes | Yes | Read Only |
|
|
In this next sample, the HTML will contain the text "&nbsp;" and the user will
see ' '