A managed bean is just a Java bean class managed by the JSF container, the JSF managed bean facility. The JSF page UI components are bound to properties in the managed bean, which contains the business logic for the input and output to the UI components. In the Model View Controller (MVC) design pattern, the JSF page represents the view, the managed bean represents the controller, and the JDBC mapping to the database represents the model. To create a managed bean, right-click on faces-config.xml and select Open With | Faces Config Editor, as shown in the following screenshot:
In Faces Config Editor select the Managed Beans tab. The managed bean elements get listed under Managed Bean Elements. Select the session scope and click on Add to add a new managed bean, as shown in the following screenshot:
In the New Managed Bean Wizard window check the Create a new Java class checkbox and click on Next, as shown in the following screenshot: