| NetUI Tag Library Documentation (Version 1.0.1) | ||||||
DETAIL: Syntax | Description | Attributes | Example | Tag Info |
FRAMES NO FRAMES |
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 |
Attributes | ||
align |
The alignment of the image. |
|
alt |
The alternative text of the image |
|
border |
The border size around the image |
|
dir |
Specifies the direction of text. ( LTR | RTL ) |
|
height |
The image height |
|
hspace |
The horizontal spacing around the image. |
|
ismap |
The server-side map declaration. |
|
lang |
Sets the language code for the base language of an element's attribute values and text content. |
|
location |
The location hash to append to the URL. |
|
longdesc |
Specifies a link to the the long description. |
|
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. |
|
src |
The image source URI |
|
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. |
|
usemap |
The client-side image map declaration |
|
vspace |
The vertical spacing around the image. |
|
width |
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 Class | org.apache.beehive.netui.tags.html.Image |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |
|
||||||
DETAIL: Syntax | Description | Attributes | Example | Tag Info |
FRAMES NO FRAMES |