Javatpoint Logo
Javatpoint Logo

JSF Referencing Managed Bean Method

Referencing Attributes

Attribute Function
action It is used to refer a managed bean method that performs navigation processing for the component and returns a logical outcome String.
actionListener It is used to refer a managed bean method that handles action events.
validator It is used to refer a managed bean method that performs validation on the component's value.
valueChangeListener It is used to refer a managed bean method that handles value-change events.

Referring Bean Method

// index.xhtml

// User.java

// response.xhtml

Output:

// index Page

JSF Referencing managed bean method 1

// Response Page

JSF Referencing managed bean method 2
Next TopicFacelets





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA