# Add Managed Bean Dialog Box

Use to register an existing JSF managed bean with the application by adding an entry to the Faces configuration file.

A JSF managed bean, or "backing bean" is a Java class that adheres to JavaBean conventions, and is associated with UI components used in a page. A managed bean defines UI component properties, each of which is bound to either a component's value or a component instance. A managed bean can also define methods that perform functions associated with a component, including validation, event handling, and navigation processing.

JSF 2.0 applications do not require the `faces-config.xml` file. You can equally declare a managed bean using the `@ManagedBean` annotation directly within the managed bean class.

Element | Description
--- | ---
Bean Name | Specifies the name which the managed bean can be invoked by.
Bean Class | Specifies the fully qualified class name of the Java class that will be used to instantiate a new instance, if creation of the specified managed bean is requested. The specified class must conform to standard JavaBean conventions. In particular, it must have a public, no-argument constructor, and properties must be accessible using get and set, following standard naming conventions.
Scope | Specifies the scope into which a newly created instance of the specified managed bean will be stored (default is `request`; choose `none` if you want to refrain from placing bean instances in any scope).
Bean Description | An optional textual description of the element, which can be flagged with a language code using the `xml:lang` attribute.

Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.