Creating Faces managed beans
To work with dynamic data on your Web page, you need to define a data source, such as a JavaBean. The JavaBeans™ you create can be used on a single Faces JSP, or, you can create Faces Managed Beans that you can reuse on any Faces JSP in your project. Once you create a Faces Managed Bean, you can easily drag it from the Page Data view to reuse on other Faces JSPs. All Faces Managed Beans for all Faces JSPs in a Web project display in the Page Data view and can be shared among the pages in the project.
To create a Faces managed bean:
- In the Page Data view, right-click
Faces Managed Beans and select
New | Faces Managed Bean. The Add JavaBean wizard opens.
- Follow the instructions in the wizard to create your Faces managed bean.