Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Backing Bean and Managed Bean  RSS feed

 
Souvik Dasgupta
Ranch Hand
Posts: 95
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am new to JSF.

I have come across two terms "Managed Bean" and "Backing Bean".They seems to be the same thing technically.

Am I right?

Thanks in advance.
 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
People ask this question periodically. If you search this forum, you should be able to find some in-depth discussions on the topic.

The short answer, however, is that a backing bean is almost always a managed bean, but a managed bean doesn't have to be a backing bean.

A backing bean(s) is referenced in a JSF view, where it provides the backing (model properties) of the View. A Managed bean is defined to the JSF bean managed (faces-config.xml or via annotations), and it gets instantiated when either a View or another managed bean being constructed needs it.
 
Souvik Dasgupta
Ranch Hand
Posts: 95
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks Tim
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!