Java Reference
In-Depth Information
Finally, we will add a template page named default.xhtml , which acts as a con-
tainer for our resources.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/
xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<title>Ticket Booking</title>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />
<h:outputStylesheet name="css/screen.css" />
</h:head>
<h:body>
<div id="container">
<div class="dualbrand">
<img src="resources/gfx/masks.jpg"
/>
</div>
<div id="content">
<ui:insert name="content">
[Template content will be
inserted here]
</ui:insert>
</div>
<div id="footer">
<p>
A Java EE 6 application
featuring CDI JPA 2.0 JSF 2.1.<br />
</p>
</div>
</div>
</h:body>
</html>
Search WWH ::




Custom Search