Forums Register Login

Bcking Bean Vs Managed Bean

+Pie Number of slices to send: Send
Hi,

Can anybody tell me the exact diffrence between backing bean and managed bean.
+Pie Number of slices to send: Send
A Backing bean is one that's referenced on a JSF View. It provides the backing object for the EL that references properties in it.

A Managed Bean is one that's constructed and initialized by the JSF framework (using the faces-config specifications). Once constructed, it's inserted into the specified scope (request, session, application or one of the new JSF2 scopes).

For almost all intents and purposes, the 2 are identical, since it takes a bit of work to invoke the bean manager directly, and conversely, a Backing Bean is almost always a Managed Bean, since the act of referencing the Backing Bean on a JSF View causes the bean manager to get involved.

Although you could manually create backing beans in a non-JSF servlet/JSP the old-fashioned way and sometimes you even find cases where that's the optimal approach.
He was expelled for perverse baking experiments. This tiny ad is a model student:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1198 times.
Similar Threads
Error
Entitybean
Accessing jsf bean from another jsf bean
Problem in Icefaces Input binding attribute
Coffe Cream on EB: mistakes/doubts #1
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:21:04.