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

Page 271

Advertising
background image

Figure 85 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 275)

.

Creating the Managed Beans, involves the following activities:

1.

“Creating a New Package” (page 271)

2.

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

3.

“Modifying the Java Class File” (page 273)

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 86

shows the New Java Package dialog box.

Overview of SkinSelector

271

Advertising
This manual is related to the following products: