JSF graphicImage Example


The JSF graphicImage renders an HTML <IMG> tag in the browser. Below is the JSF h:graphicImage tag and its corresponding HTML tag.


JSF => <h:graphicImage url=”img/simba.png” style=”width:200px;height:200px;” />

HTML => <img src=”img/simba.png” style=”width:200px;height:200px;” />


The Below JSF page renders an image using h:graphicImage tag. I placed the image ‘simba.png’ under ‘Webcontent/img’ folder.


The page looks like below:


112417_1824_JSFGraphicI1 JSF GraphicImage Example

govindan JSF GraphicImage Example
Connect me


Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
govindan JSF GraphicImage Example
Connect me
By | 2017-11-24T13:38:39+00:00 November 24th, 2017|Categories: JSF|Tags: , , , |0 Comments
Like us on Facebook.