Skip to content

Instantly share code, notes, and snippets.

@nazartm
Last active December 12, 2015 01:48
Show Gist options
  • Save nazartm/4693774 to your computer and use it in GitHub Desktop.
Save nazartm/4693774 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<ui:composition template="../templates/default.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<ui:define name="title">Template client page title</ui:define>
<ui:define name="content">
<h1>Sample page</h1>
<h:messages/>
</ui:define>
</ui:composition>
<!DOCTYPE html>
<html lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<meta charset="utf-8"/>
<title><ui:insert name="title">Page title</ui:insert></title>
<h:outputStylesheet library="css" name="default.css"/>
</h:head>
<h:body>
<header>
<h1><h:graphicImage library="img" name="logo.png" id="logo"/>#{msg['site.title']}</h1>
</header>
<div id="content">
<ui:insert name="content">Content</ui:insert>
</div>
<footer>
<p>Footer text</p>
</footer>
</h:body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment