• Menu
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

JavaBeat

Java Tutorial Blog

  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)

h:graphicImage in JSF

September 22, 2008 //  by Krishna Srinivasan//  Leave a Comment

The h:graphicImage tag renders an HTML image tag.


also read:

  • Introduction to JSF
  • JSF Interview Questions
  • Request Processing Lifecycle phases in JSF
 
<h:graphicImage id="jsfimage" value="/images/jsfimage.gif" width="200" height="50" />

h:graphicImage Tag Attributes

alt

The alt attribute is a standard HTML attribute that sets the alternate textual description rendered by this component.

binding

The value-binding expression linking this component tag to a backing bean property.

dir

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

The height attribute sets the height of the image.

id

The unique identifier value for this component. The value must be unique within the closest naming container.

ismap

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

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

The longdesc attribute provides a long description of the image rendered by this tag.

onclick

The onclick attribute sets the JavaScript code to execute when the mouse pointer is clicked over this element.

ondblclick

The ondblclick attribute sets the JavaScript code to execute when the mouse pointer is double-clicked over this element.

onkeydown

The onkeydown attribute sets the JavaScript code to execute when a key is pressed down over this element.

onkeypress

The onkeypress attribute sets the JavaScript code to execute when a key is pressed and released over this element.

onkeyup

The onkeyup attribute sets the JavaScript code to execute when a key is released over this element.

onmousedown

The onmousedown attribute sets the JavaScript code to execute when the mouse pointer is pressed down over this element.

onmousemove

The onmousemove attribute sets the JavaScript code to execute when the mouse pointer is moved within this element.

onmouseout

The onmouseout attribute sets the JavaScript code to execute when the mouse pointer is moved away from this element.

onmouseover

The onmouseover attribute sets the JavaScript code to execute when the mouse pointer is moved onto this element.

onmouseup

The onmouseup attribute sets the JavaScript code to execute when the mouse button is released over this element.

rendered

A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered.

style

The style attribute sets the CSS style definition to be applied to this component when it is rendered.

styleClass

The styleClass attribute sets the CSS class to apply to this component when it is rendered.

title

The title attribute is a standard HTML attribute that sets the tooltip text to display for the rendered component.

url

The url attribute is an alias for the value attribute. It accepts a context-relative URL to the image to be displayed.

usemap

The usemap attribute sets the name of a client-side image map (the HTML “map” element) for which this tag provides the image.

value

The value attribute set the context-relative URL to the image to be displayed.

width

The width attribute sets the width of the image.

Category: JSFTag: JSF Tags

About Krishna Srinivasan

He is Founder and Chief Editor of JavaBeat. He has more than 8+ years of experience on developing Web applications. He writes about Spring, DOJO, JSF, Hibernate and many other emerging technologies in this blog.

Previous Post: « New Features in JSP 2.0
Next Post: Custom DateTimeConverter in JSF »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow Us

  • Facebook
  • Pinterest

FEATURED TUTORIALS

New Features in Spring Boot 1.4

Difference Between @RequestParam and @PathVariable in Spring MVC

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

Introductiion to Jakarta Struts

What’s new in Struts 2.0? – Struts 2.0 Framework

JavaBeat

Copyright © by JavaBeat · All rights reserved
Privacy Policy | Contact