2.5.1 @ManagedBean

Organization of this subsection
(1) Description
(2) Attribute

(1) Description

Specify the Managed Bean used by JSF.

(2) Attribute

The following table lists the @ManagedBean attributes:

Attribute nameFunctionality
eagerSpecify whether a Managed Bean is to be generated when the Web application starts.
nameSpecify the name of ManagedBean.

Details of each attribute are as follows:

(a) eager attribute
Type
boolean
Description
Specify whether a Managed Bean is to be generated when Web application starts. If true is set, Bean scope should be within the application scope.
Default value
false
(b) name attribute
Type
String
Description
Specify the name of ManagedBean.
If unspecified or Null, use the class name starting with a lower case character for the class that specifies annotation.
Example : For java.examlpes.Bean, the name becomes bean.
Default value
""