• Post Reply Bookmark Topic Watch Topic
  • New Topic

Whats the difference b/w Backing bean & Managed Bean

 
Suresh K Babu
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anyone please describe the difference b/w Backing bean & Managed Bean if at all there are two different type of beans.

Thanks
Suresh
 
Tim Holloway
Bartender
Posts: 18412
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A Managed Bean is any been defined in the faces-config file(s). It's exactly what its name says - a POJO managed (created and initialized) by the JSF framework.

A Backing Bean is a bean that's backing up a JSF view. That is, it's part of an EL expression that references that bean or it's properties on a JSF web page definition.

Since managed beans are created on-demand and the most common demand is from a JSF View, you can consider the two terms to be essentially equivalent.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!