HTML and CSS Reference
In-Depth Information
Constructing JSF Pages
Weather application has the following XHTML pages:
1. Home page ( home.xhtml ): It represents the login page of the application, which is shown
in Figure 10-4 .
2. Registration pages (/registration/*.xhtml ): They represent the pages which include the
registration flow; the registration pages include the following pages:
a. registration.xhtml page, which represents the first registration page in the flow
shown in Figure 10-1 .
b. extraInfo.xhtml page, which represents the second registration page in the flow
shown in Figure 10-2 .
c. final.xhtml page, which represents the final registration page in the flow shown
in Figure 10-3 .
3. Weather page ( /protected/weather.xhtml ), which represents the weather page shown
in Figure 10-5 .
Listing 10-1 shows the home.xhtml page code.
Listing 10-1. Home Page XHTML Code
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<html xmlns=" "
xmlns:ui=" "
xmlns:h=" " >
<ui:composition template="/WEB-INF/templates/main.xhtml">
<ui:define name="title">
<ui:define name="content">
<h:panelGrid columns="3">
<h:outputText value="#{bundle['']}"></h:outputText>
<h:inputText id="userID"
<h:message for="userID" styleClass="errorMessage"/>
<h:outputText value="#{bundle['user.password']}"></h:outputText>
<h:inputSecret id="password"
<h:message for="password" styleClass="errorMessage"/>
Search WWH ::

Custom Search