Java Reference
In-Depth Information
We need to make sure the name the new file matches the value of the action attribute
in the command button of the input page ( confirmation.xhtml ) so that static
navigation works properly.
After modifying the generated page to meet our requirements, it should look
like this:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns=""
<title>Confirmation Page</title>
<h:outputStylesheet library="css" name="styles.css"/>
<h2>Confirmation Page</h2>
<h:panelGrid columns="2"
<h:outputText value="Salutation:"/>
<h:outputText value="First Name:"/>
<h:outputText value="Last Name:"/>
<h:outputText value="Age:"/>
<h:outputText value="Email Address:"/>
As we can see, our confirmation page is very simple. It consists of a series of
<h:outputText> tags that contain labels and value binding expressions bound
to our named bean's properties. The JSF <h:outputText> tag simply displays
the value of the expression of its value attribute on the rendered page.
Executing our application
We are now ready to execute our JSF application. The easiest way to do so is to
right-click on our project and click on Run in the resulting pop-up menu.
Search WWH ::

Custom Search