NetUI Tag Library Documentation (Version 1.0.1)

netui
netui:image Tag

Renders an HTML <img> tag with specified attributes.

Syntax

<netui:image
    [align="string_align"]
    [alt="string_alt"]
    [border="integer_pixelBorder"]
    [dir="string_dir"]
    [height="integer_height"]
    [hspace="integer_hspace"]
    [ismap="string_isMap"]
    [lang="string_lang"]
    [location="string_location"]
    [longdesc="string_longdesc"]
    [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"]
    [src="string_src"]
    [style="string_style"]
    [styleClass="string_styleClass"]
    [tagId="string_tagId"]
    [title="string_title"]
    [usemap="string_useMap"]
    [vspace="string_vspace"]
    [width="integer_pixelWidth"] >
    ... JSP content ...
</netui:image>

Description

Renders an HTML <img> tag with specified attributes.

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

The alignment of the image.
alt
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The alternative text of the image
border
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The border size around the image
dir
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

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

The image height
hspace
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The horizontal spacing around the image.
ismap
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The server-side map declaration.
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.
location
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The location hash to append to the URL.
longdesc
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

Specifies a link to the the long description.
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.
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.
src
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The image source URI
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.

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

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

The client-side image map declaration
vspace
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The vertical spacing around the image.
width
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The image width.

Example

In this sample, an Image shows "friends.jpg" at 150 x 175 pixels, with the id "Friends".

<netui:image src="friends.jpg" tagId="Friends" height="150" width="175" />


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