Java Reference
In-Depth Information
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<link rel="stylesheet" type="text/css"
href="../css/style.css">
<title>Confirmation Page</title>
</head>
<body>
<h2>Confirmation Page</h2>
<f:view>
<h:panelGrid columns="2"
columnClasses="rightalign-bold,normal">
<!-- First row begins here -->
<h:outputText value="Salutation: "/>
<h:outputText
value="#{RegistrationBean.salutation}" />
<!-- Second row begins here -->
<h:outputText value="First Name:"/>
<h:outputText value="#{RegistrationBean.firstName}" />
<!-- Third row begins here -->
<h:outputText value="Last Name:"/>
<h:outputText value="#{RegistrationBean.lastName}" />
<!-- Fourth row begins here -->
<h:outputText value="Age:"/>
<h:outputText value="#{RegistrationBean.age}"/>
<!-- Fifth row begins here -->
<h:outputText value="Email Address:"/>
<h:outputText value="#{RegistrationBean.email}" />
</h:panelGrid>
</f:view>
</body>
</html>
As we can see, our confirmation page is very simple. It consists of a series of
<h:outputText> tags containing labels and value binding expressions bound to our
managed bean's properties.
Executing Our Application
We are now ready to execute our JSF application. The easiest way to do so is to
right-click on welcomeJSF.jsp and click on Run File in the resulting pop-up menu,
or, if our application is set as the main project, we can click directly to the "Run" icon
in the tool bar at the top of the IDE.
 
Search WWH ::




Custom Search