netui:image Tag

<netui:image> Tag

Renders an <image> tag with the specified attributes

Syntax

<netui:image
    [align="string_align"]
    [alt="string_alt"]
    [border="integer_pixelBorder"]
    [height="integer_height"]
    [hspace="integer_hspace"]
    [id="string_id"]
    [ismap="string_isMap"]
    [location="string_location"]
    [lowsrc="string_lowsrc"]
    [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"]
    [page="string_page"]
    [src="string_src"]
    [style="string_Style"]
    [styleClass="string_Class"]
    [tabindex="string_tabIndex"]
    [tagId="string_tagId"]
    [usemap="string_useMap"]
    [vspace="string_vspace"]
    [width="integer_pixelWidth"] />

Description

Renders an <image> tag with the specified attributes

Attributes

alignThe alignment of the image.
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

altThe alternative text of the image
 
RequiredSupports runtime expression evaluationData bindable
NoNoRead Only

borderThe border size around the image
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

heightThe image height
 
RequiredSupports runtime expression evaluationData bindable
NoNoRead Only

hspaceThe horizontal spacing around the image.
 
RequiredSupports runtime expression evaluationData bindable
NoNoRead Only

idThe 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.
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

ismapThe server-side map declaration.
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

locationThe location hash to append to the URL.
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

lowsrcThe low resolution image source URI
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

onClickThe onClick JavaScript event.
 
RequiredSupports runtime expression evaluationData bindable
NoYesNo

onDblClickThe onDblClick JavaScript event.
 
RequiredSupports runtime expression evaluationData bindable
NoYesNo

onKeyDownThe onKeyDown JavaScript event.
 
RequiredSupports runtime expression evaluationData bindable
NoYesNo

onKeyPressThe onKeyPress JavaScript event.
 
RequiredSupports runtime expression evaluationData bindable
NoYesNo

onKeyUpThe onKeyUp JavaScript event.
 
RequiredSupports runtime expression evaluationData bindable
NoYesNo

onMouseDownThe onMouseDown JavaScript event.
 
RequiredSupports runtime expression evaluationData bindable
NoYesNo

onMouseMoveThe onMouseMove JavaScript event.
 
RequiredSupports runtime expression evaluationData bindable
NoYesNo

onMouseOutThe onMouseOut JavaScript event.
 
RequiredSupports runtime expression evaluationData bindable
NoYesNo

onMouseOverThe onMouseOver JavaScript event.
 
RequiredSupports runtime expression evaluationData bindable
NoYesNo

onMouseUpThe onMouseUp JavaScript event.
 
RequiredSupports runtime expression evaluationData bindable
NoYesNo

pageThe page attribute has been deprecated. The module-relative path of the image to be displayed by this rendered tag.
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

srcThe image source URI
 
RequiredSupports runtime expression evaluationData bindable
NoYesRead Only

styleSets the style of the rendered HTML tag.
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

styleClassThe class of the rendered HTML tag.
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

tabindexThe 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.
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

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.

 
RequiredSupports runtime expression evaluationData bindable
NoYesNo

usemapThe client-side image map declaration
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

vspaceThe vertical spacing around the image.
 
RequiredSupports runtime expression evaluationData bindable
NoNoRead Only

widthThe image width.
 
RequiredSupports runtime expression evaluationData bindable
NoNoRead Only

Sample

In this sample, an Image shows "friends.jpg" at 150 x 175 pixels, with the id "Friends".
    <netui:image src="friends.jpg" id="Friends" height="150" width="175" />