NetUI Tag Library Documentation (Version 1.0.2)

netui
netui:body Tag

Renders an HTML <body> tag with the attributes specified.

Syntax

<netui:body
    [alink="string_alink"]
    [background="string_background"]
    [bgcolor="string_bgcolor"]
    [dir="string_dir"]
    [lang="string_lang"]
    [link="string_link"]
    [onClick="string_onClick"]
    [onDblClick="string_onDblClick"]
    [onKeyDown="string_onKeyDown"]
    [onKeyPress="string_onKeyPress"]
    [onKeyUp="string_onKeyUp"]
    [onLoad="string_onLoad"]
    [onMouseDown="string_onMouseDown"]
    [onMouseMove="string_onMouseMove"]
    [onMouseOut="string_onMouseOut"]
    [onMouseOver="string_onMouseOver"]
    [onMouseUp="string_onMouseUp"]
    [onUnload="string_onUnload"]
    [style="string_style"]
    [styleClass="string_styleClass"]
    [tagId="string_tagId"]
    [text="string_text"]
    [title="string_title"]
    [vlink="string_vlink"] >
    ... JSP content ...
</netui:body>

Description

Renders an HTML <body> tag with the attributes specified.

Attributes
alink
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The color of text marking hypertext links when selected by the user
background
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The background image of the page.
bgcolor
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The background color of the page.
dir
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

Specifies the direction of text. (LTR | RTL)
lang
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

Sets the language code for the base language of an element's attribute values and text content.
link
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The color of text marking unvisited hypertext links of the page
onClick
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The onClick JavaScript event.
onDblClick
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The onDblClick JavaScript event.
onKeyDown
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The onKeyDown JavaScript event.
onKeyPress
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The onKeyPress JavaScript event.
onKeyUp
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The onKeyUp JavaScript event.
onLoad
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The onLoad JavaScript event.
onMouseDown
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The onMouseDown JavaScript event.
onMouseMove
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The onMouseMove JavaScript event.
onMouseOut
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The onMouseOut JavaScript event.
onMouseOver
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The onMouseOver JavaScript event.
onMouseUp
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The onMouseUp JavaScript event.
onUnload
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The onLoad JavaScript event.
style
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

Specifies style information for the current element.
styleClass
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The style class (a style sheet selector).
tagId
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

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 lookupIdByTagId( 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:

    lookupIdByTagId( "foo", this )

To get a <netui:form> element and all of its children elements in JavaScript, use the same JavaScript function lookupIdByTagId( 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[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 this as the second parameter.

text
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The foreground text color of the page.
title
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The title.
vlink
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The color of text marking visited hypertext links of the page


Tag Information
Tag Classorg.apache.beehive.netui.tags.html.Body
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone