Java Reference
In-Depth Information
As you can see, the template contains two main HTML div elements that will be
used to contain the main application panel ( content ) and a footer div ( footer ),
which will barely output the application title.
So in order to add the template at first, add a new JSP page in the WEB-INF/tem-
plates folder of your application, and name it default.xhtml :
<!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>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />
<h:outputStylesheet name="style.css" />
</h:head>
<h:body>
<div id="container">
<div id="content">
<ui:insert name="content">
[Template content will be
inserted here]
</ui:insert>
</div>
<div id="footer">
<p>
<i>JBoss AS 7 Development
Ticket Booking example.</i><br />
Search WWH ::




Custom Search