Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

JSF OutputLink Example

8 total views, 8 views today

JSF Outputlink Example

The JSF h:OutputLink in useful to navigate a page outside of the Web application. The outcome attribute needs complete Web page name or the URL; For example, ‘Home.xhtml’ and not accept viewID like ‘Home’.

JSF Outputlink renders an anchor tag in the browser like below

JSF => Google

HTML => href=”http://www.google.com” target=”_blank”>Google

JSF h:Outputlink Example

Below is the index.xhtml page contains two h:outputlink tag. First one navigates outside of the application and second one navigate to Home.xhtml page. If I not mentioned the http in the first URL then JSF will append the URL at the end of the application URL .

Google

Home

It renders in the browser like below. 

Download the Source Code:

  JSF_OutputLink



This post first appeared on Oracle ADF, BPM, BI And Primavera P6 Tutorials, please read the originial post: here

Share the post

JSF OutputLink Example

×

Subscribe to Oracle Adf, Bpm, Bi And Primavera P6 Tutorials

Get updates delivered right to your inbox!

Thank you for your subscription

×