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.
You arrive at this dialog box by right-clicking in a Faces configuration file
(faces-config.xml
) and choosing Insert > Managed Bean. The purpose
of the dialog is to register an existing JSF managed bean with the application
by adding an entry to the Faces configuration file.
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.
request
; choose
none
if you want to refrain from placing bean instances in any scope).xml:lang
attribute.