The following table lists the @ManagedBean attributes:
Attribute name | Functionality |
---|
eager | Specify whether a Managed Bean is to be generated when the Web application starts. |
name | Specify 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
- ""