Java Reference
In-Depth Information
<h:head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<h:outputStylesheet name="./css/default.css"/>
<h:outputStylesheet name="./css/cssLayout.css"/>
<title>Facelets Template</title>
</h:head>
<h:body>
<div id="top" class="top">
<ui:insert name="top">Top</ui:insert>
</div>
<div>
<div id="left">
<ui:insert name="left">Left</ui:insert>
</div>
<div id="content" class="left_content">
<ui:insert name="content">Content</ui:insert>
</div>
</div>
</h:body>
</html>
As we can see, the template doesn't look much different from a regular facelets file.
We can see that the template uses the following namespace: xmlns:ui="http://
xmlns.jcp.org/jsf/facelets" . This namespace allows us to use the <ui:insert>
tag. The contents of this tag will be replaced by the content in a corresponding
<ui:define> tag in template clients.
 
Search WWH ::




Custom Search