|
Answer» The bean INSTANCE is configured in the faces-config.xml file: <managed-bean> <managed-bean-name>login</managed-bean-name> <managed-bean-CLASS>com.developersBookJsf.loginBean</managed-bean-class> <managed-bean-scope>request</managed-bean-scope> </managed-bean> This MEANS: Construct an object of the class com.developersBookJsf.loginBean, give it the name login, and keep it ALIVE for the duration of the request.
The bean instance is configured in the faces-config.xml file: <managed-bean> <managed-bean-name>login</managed-bean-name> <managed-bean-class>com.developersBookJsf.loginBean</managed-bean-class> <managed-bean-scope>request</managed-bean-scope> </managed-bean> This means: Construct an object of the class com.developersBookJsf.loginBean, give it the name login, and keep it alive for the duration of the request.
|