162 total views, 5 views today

JSF Link Example

 

The <h:link> tag renders a HTML anchor tag in the browser. It uses the outcome attribute for doing navigation. We can use h:param tag to pass query parameters and h:graphicImage to render an image.

The h:link tag renders like below in the browser

 

JSF => <h:link outcome=”Home” value=”Home” />

HTML => <a href=”/JSF_Link_Example/faces/Home.xhtml“>Home</a>

 

JSF h:link Example:

 

Below is the index.jsf page; The First one has a simple JSF Link with NavigationSecond JSF Link has Navigation with Query Parameter using f:param tag and third JSF Link do Navigation & renders an Image using h:graphicImage 

 

 

 

It renders like below in the Browser

 

JSF_Link_Example JSF Link Example

 

Download Source Project:  

govindan JSF Link Example
Connect me

Govind

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 Link Example
Connect me
By | 2017-11-19T18:52:50+00:00 November 19th, 2017|Categories: JSF|Tags: , , , , |0 Comments
Like us on Facebook.
Connect!