beautypg.com

Modifying the same-color.jsp file, Creating the, Same-color.jsp – HP Integrity NonStop H-Series User Manual

Page 268: And show-preview.jsp files, Modifying the, File

background image

disabled="#{!resumeBean.colorSupported}">



value="#{resumeBean.colorSupportLabel}"
actionListener="#{resumeBean.toggleColorSupport}"
immediate="true"/>




Name:


Job Title:


action="#{resumeBean.showPreview}"/>


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 so

on, used in the

customize.jsp

file, 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, named

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">



268

Getting Started with MyFaces

This manual is related to the following products: