1.

Difference Between Backing Beans And Managed Beans?

Answer»

Backing beans are JavaBeans components associated with UI components used in a page. Backing-bean management separates the definition of UI component objects from objects that perform application-specific processing and HOLD data.

Backing Beans are merely a convention, a subtype of JSF Managed Beans which have a very particular PURPOSE. There is nothing SPECIAL in a Backing Bean that makes it different from any other managed bean apart from its usage.What makes a Backing Bean is the relationship it has with a JSF page; it acts as a place to PUT component references and Event code.

Backing Beans : A backing bean is any bean that is referenced by a form. Backing Beans should be defined only in the request scope

Managed Beans : A managed bean is a backing bean that has been registered with JSF (in faces-config.xml) and it automatically created (and optionally initialized) by JSF when it is needed. The advantage of managed beans is that the JSF framework will automatically create these beans, optionally INITIALIZE them with parameters you specify in faces-config.xml.

Backing beans are JavaBeans components associated with UI components used in a page. Backing-bean management separates the definition of UI component objects from objects that perform application-specific processing and hold data.

Backing Beans are merely a convention, a subtype of JSF Managed Beans which have a very particular purpose. There is nothing special in a Backing Bean that makes it different from any other managed bean apart from its usage.What makes a Backing Bean is the relationship it has with a JSF page; it acts as a place to put component references and Event code.

Backing Beans : A backing bean is any bean that is referenced by a form. Backing Beans should be defined only in the request scope

Managed Beans : A managed bean is a backing bean that has been registered with JSF (in faces-config.xml) and it automatically created (and optionally initialized) by JSF when it is needed. The advantage of managed beans is that the JSF framework will automatically create these beans, optionally initialize them with parameters you specify in faces-config.xml.



Discussion

No Comment Found