]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
this template serves as a template for new templates ... ;-) Eh, I mean pages.
authorRoland Haeder <roland@mxchange.org>
Wed, 2 Sep 2015 06:21:26 +0000 (08:21 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 2 Sep 2015 06:21:26 +0000 (08:21 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

web/templates.dist/guest_page.xhtml [new file with mode: 0644]

diff --git a/web/templates.dist/guest_page.xhtml b/web/templates.dist/guest_page.xhtml
new file mode 100644 (file)
index 0000000..7d67185
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+         xmlns:ui="http://java.sun.com/jsf/facelets"
+         xmlns:h="http://xmlns.jcp.org/jsf/html"
+         xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
+         xmlns:f="http://xmlns.jcp.org/jsf/core"
+         >
+
+       <f:metadata>
+               <f:viewAction action="#{controller.init()}" />
+       </f:metadata>
+
+       <c:set var="basePath" value="#{request.contextPath}" />
+
+       <ui:composition template="/WEB-INF/templates/base.tpl">
+               <ui:define name="title">Your page's title here</ui:define>
+
+               <ui:define name="menu">
+                       <ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
+               </ui:define>
+
+               <ui:define name="content_header">
+                       Your header above content here
+               </ui:define>
+
+               <ui:define name="content">
+                       Here goes your content.
+               </ui:define>
+
+               <ui:define name="footer">
+                       <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/guest/guest_footer.tpl" />
+               </ui:define>
+       </ui:composition>
+</html>