What is a Backing bean in JSF


Backing bean in JSF is a subtype of managed Bean but contain properties of all or some of UI component in a JSF page. The backing bean is useful for UI component validations, conversion, event handling etc. In other words, backing bean properties binds to UI components In JSF page.


Below is the backing bean class of index.jsf . It has a custom method prints value of UI component on form submission 



Below is the index.jsf page. Each UI component in JSF has a binding parameter binds to the backing bean class. 



The JSF page displays like below in the browser 


JSF_BACKING_BEAN What is a Backing bean in JSF


Prints the following in the console when the Submit button is clicked 


Govindan Padmanaban


Download Backing Bean Project: BACKING_BEAN_EXAMPLE


govindan What is a Backing bean in JSF
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 What is a Backing bean in JSF
Connect me
By | 2017-09-30T17:35:53+00:00 September 30th, 2017|Categories: JSF|Tags: |Comments Off on What is a Backing bean in JSF
Like us on Facebook.