Creating Managed Bean

You can create a managed bean and add it to your Web application to bind bean properties and business logic to the user interface components of the Java ServerPage (JSP).. Using the New Managed Bean wizard, you can creat a managed bean from an existing Java class or by creating a new Java class.

To create a managed bean:

  1. Select faces-config.xml in the Project Explorer of the J2EE perspective.

    The JSF Application Configuration editor opens.

  2. Select the ManagedBean tab of the editor.

    The ManagedBean page appears.

  3. Click Add.

    The New Managed Bean Wizard appears.

  4. Follow the wizard instructions.

    The wizard displays help that assists you in the decisions that you need to make.

    Note

    Project names cannot contain spaces.


Related concepts


Related reference

Faces Config Editor

Related tasks

Tutorial