beautypg.com

Modifying the same-color.jsp file, Modifying the show-preview.jsp file – HP Integrity NonStop J-Series User Manual

Page 167

background image

NOTE:

JSP directives for using JSF and HTML tag libraries

The following JSP directives allow the JSP page to use the JSF Core and HTML tag libraries
that are provided in the JSF specification’s Reference Implementation.

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

MyFaces User Interface components

JSF components, such as and
provide Faces enabled User Interface.

is called the JSF value binding

expression and provides direct linkage to the bgColor property of the managed bean
resumeBean

.

Creating the same-color.jsp and show-preview.jsp Files

Create two new JSP files, same-color.jsp and show-preview.jsp, in the SkinSelector/
WebContent/WEB-INF/results

folder, by following the steps explained in the

Creating the

index.jsp

File

section.

Modifying the same-color.jsp File

To modify the same-color.jsp file, complete the following steps:

1.

Double-click the same-color.jsp file in the Project Explorer frame to open it.

2.

Replace the default content of the same-color.jsp file with the following code:

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>



Color Error
HREF="./css/styles.css"
TYPE="text/css">





Color Error


You chose
""
as both the foreground and background color.


try again.


Modifying the show-preview.jsp File

To modify the show-preview.jsp file, complete the following steps:
1.

Double-click the show-preview.jsp file in the Project Explorer frame to open it.

2.

Replace the default content of the show-preview.jsp file with the following code:

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

Getting Started with MyFaces

167

This manual is related to the following products: