JSF Central - FAQ
JSF Central

 Articles & Books 
FAQ > Programming with JSF
What is a managed bean?
Updated: August 6, 2008

JSF provides automatic integration between user interface components and model objects, which are typically implemented as JavaBeans. These objects live in some scope of the application, such as request, session, or application. JSF allows you to configure beans in its configuration file (faces-config.xml) so that they are automatically created the first time they are referenced. This saves you the trouble of creating beans via JSP usebean tags or in Java code.

To be more specific, JSF has a dependency injection container called the Managed Bean Creation Facility (MBCF). Any object created by the MBCF is called a "managed bean". Usually, most of the objects used in your application will be managed beans (or they will be managed by another dependency injection container, such as Spring).

RSS feed(all feeds)
RSS feed(Programming with JSF)

The Editor's Desk
Inside Facelets
In the Trenches

Site version 1.83  Report web site problems

Copyright (C) 2003-2015 Virtua, Inc. All Rights Reserved. Java, JavaServer Faces, and all Java-based marks are trademarks or registered trademarks of Oracle Corporation. in the United States and other countries. Virtua, Inc. is independent of Oracle Corporation. All other trademarks are the sole property of their respective owners.