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

JSF Button Example

6 total views, 3 views today

JSF Button Example

The JSF button refers its outcome attribute for Navigation. It uses Javascript OnClick() method for the navigation so if the browser does not has the JavaScript support then the Navigation in h:button won’t work.

The Button Component will render an HTML component of type Button like below. Notice the JavaScript OnClick() Method

JSF =>

     HTML => type=”button” 

onclick=”window.location.href=’/JSF_Button_Example/faces/Home.xhtml’ 

return false;value=”h:button” />

The Button component will render an HTML component of type image if image attribute is specified as shown below; .

     JSF =>

     HTML =>

type=”imagesrc=”pumba.jpg” return false;” value=”h:button”

onclick=”window.location.href=’/JSF_Button_Example/faces/Home.xhtml’;  

style=”width:240px;height:240px;” />

Here below I have described an example of h:button

JSF h:button Example

Below is the Index.jsf Page contains two JSF button. The first component only do navigation and other renders an image and do navigation




The JSF Button renders like below in Browser

Download the Source Project: 

> JSF_Button_Example




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

Share the post

JSF Button Example

×

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

Get updates delivered right to your inbox!

Thank you for your subscription

×