beautypg.com

Creating the managed beans, Creating a new package – HP Integrity NonStop H-Series User Manual

Page 270

background image

Figure 13-14 Project Explorer View

Creating the Managed Beans

A managed bean is a Java class for JSF applications. It is a Plain-Old Java Object (POJO) that
conforms to Java Beans naming conventions. For a JSF application to refer to its Java classes,
their methods and properties, it has to be available in the Java classpath and registered in the

faces-config.xml

().

NOTE:

faces-config.xml

is described in the

Creating the Configuration File

section.

Creating the Managed Beans, involves the following activities:

1.

Creating a New Package

2.

Creating a New Java Class File

3.

Modifying the Java Class File

Creating a New Package

To create a new package named coreservlets, complete the following steps:

1.

On the Project Explorer frame, right-click SkinSelector, and select New > Package.

The New Java Package dialog box appears.

2.

In the Source folder, select SkinSelector/src and enter the Name as

coreservlets

.

Figure 13-15

shows the New Java Package dialog box.

270

Getting Started with MyFaces

This manual is related to the following products: