Documentation
JSFToolbox

Search 

Contents

  1. Introduction
  2. Getting Started
  3. Developing Web Sites
  4. Using Components
  5. Internationalization
  6. Code View Support
  7. Design View Support
  8. Keyboard Shortcuts
  9. Tag Object Toolbars
  10. JSF Server Behaviors
  11. Property Inspectors
Selected 12. JSF Tag Reference

12. JSF Tag Reference

Contents > JSF Tag Reference > JSF HTML Tags

10. JSF HTML Tag Reference

Contents > JSF HTML Tag Reference > h:graphicImage

h:graphicImage

The graphicImage tag renders an HTML image tag.

Example:

<h:graphicImage id="image1" value="/images/header.gif" width="400" height="150" />

HTML Output

<img id="image1" src="/images/header.gif" width="400" height="150" />

Tag Attributes

alt String
 
The alt attribute is a standard HTML attribute that sets the alternate textual description rendered by this component.
binding String
 
The value-binding expression linking this component tag to a backing bean property.
dir String
 
The dir attribute is a standard HTML attribute that overrides the default text directionality for this component. The values accepted for this component are "LTR" (left-to-right) and "RTL" (right-to-left).
height String
 
The height attribute sets the height of the image.
id String
 
The unique identifier value for this component. The value must be unique within the closest naming container.
ismap String
 
The ismap attribute is a boolean flag that indicates that this image is to be used as a server side image map. If so, the image must be contained within a hyperlink ("a") element.
lang String
 
The lang attribute is a standard HTML attribute that sets the code describing the language to be used in the markup generated by this component.
longdesc String
 
The longdesc attribute provides a long description of the image rendered by this tag.
onclick String
 
The onclick attribute sets the JavaScript code to execute when the mouse pointer is clicked over this element.
ondblclick String
 
The ondblclick attribute sets the JavaScript code to execute when the mouse pointer is double-clicked over this element.
onkeydown String
 
The onkeydown attribute sets the JavaScript code to execute when a key is pressed down over this element.
onkeypress String
 
The onkeypress attribute sets the JavaScript code to execute when a key is pressed and released over this element.
onkeyup String
 
The onkeyup attribute sets the JavaScript code to execute when a key is released over this element.
onmousedown String
 
The onmousedown attribute sets the JavaScript code to execute when the mouse pointer is pressed down over this element.
onmousemove String
 
The onmousemove attribute sets the JavaScript code to execute when the mouse pointer is moved within this element.
onmouseout String
 
The onmouseout attribute sets the JavaScript code to execute when the mouse pointer is moved away from this element.
onmouseover String
 
The onmouseover attribute sets the JavaScript code to execute when the mouse pointer is moved onto this element.
onmouseup String
 
The onmouseup attribute sets the JavaScript code to execute when the mouse button is released over this element.
rendered String
 
A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered.
style String
 
The style attribute sets the CSS style definition to be applied to this component when it is rendered.
styleClass String
 
The styleClass attribute sets the CSS class to apply to this component when it is rendered.
title String
 
The title attribute is a standard HTML attribute that sets the tooltip text to display for the rendered component.
url String
 
The url attribute is an alias for the value attribute. It accepts a context-relative URL to the image to be displayed.
usemap String
 
The usemap attribute sets the name of a client-side image map (the HTML "map" element) for which this tag provides the image.
value String
 
The value attribute set the context-relative URL to the image to be displayed.
width String
 
The width attribute sets the width of the image.