Java Reference
In-Depth Information
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://xmlns.jcp.org/jsf/
facelets">
<h:head>
<title>Resource Library
Contracts</title>
</h:head>
<h:body>
<ui:insert name="header" >
<img src="image.jpg" width="400"
height="50" alt="Header
image"/>
</ui:insert>
</h:body>
</html>
The following code demonstrates how a template can be used in a web page:
<f:view>
<h:form>
<h:panelGrid border="1" columns="3"
>
<f:facet name="header">
<ui:composition template="/
header.xhtml">
</ui:composition>
</f:facet>
<f:facet name="footer">
<ui:composition template="/
footer.xhtml">
</ui:composition>
Search WWH ::




Custom Search