Modifying the java class file – HP Integrity NonStop J-Series User Manual

Page 273

Advertising
background image

Figure 87 New Java Class Dialog Box

3.

Click Finish

The ResumeBean Java class is created.

Modifying the Java Class File

To modify the ResumeBean.java file, complete the following steps:

1.

Double-click the ResumeBean.java file in the Project Explorer frame to open it.

2.

Replace the default contents of the ResumeBean.java file with the following code:

package coreservlets;

import javax.faces.model.*;
import javax.faces.event.*;
import java.io.*;

public class ResumeBean implements Serializable {
private String name = "";
private String jobTitle = "";
private String fgColor = "BLACK";
private String bgColor = "WHITE";
private SelectItem[] availableColorNames =
{ new SelectItem("BLACK"),
new SelectItem("WHITE"),
new SelectItem("SILVER"),
new SelectItem("RED"),
new SelectItem("GREEN"),
new SelectItem("BLUE") };
private SelectItem[] availableColorValues =

Overview of SkinSelector 273

Advertising
This manual is related to the following products: