beautypg.com

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

Page 169

background image

Figure 64 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 with the Java Beans naming conventions. For a JSF application to refer to its Java classes,
their methods and properties, it must be available in the Java classpath and registered in the
faces-config.xml

().

For information on faces-config.xml, see

“Creating the Configuration File” (page 173)

.

Creating the Managed Beans, involves the following activities:

1.

“Creating a New Package” (page 169)

2.

“Creating a New Java Class File” (page 170)

3.

“Modifying the Java Class File” (page 171)

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 65

shows the New Java Package dialog box.

Getting Started with MyFaces

169

This manual is related to the following products: