]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/index.xhtml
Please cherry-pick:
[jjobs-war.git] / web / index.xhtml
index c1544ab1803993e9292e78356df0ca265f32bcff..9b7f7cdedc342ee74886dfb8e0e21c171efdc99f 100644 (file)
@@ -1,12 +1,33 @@
-<?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:h="http://xmlns.jcp.org/jsf/html">
-    <h:head>
-        <title>Facelet Title</title>
-    </h:head>
-    <h:body>
-               Hello from Facelets
-    </h:body>
-</html>
+<html
+       lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+       xmlns:h="http://xmlns.jcp.org/jsf/html"
+       xmlns:f="http://xmlns.jcp.org/jsf/core"
+       >
+
+       <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
+               <ui:define name="guest_title">
+                       <h:outputText value="#{msg.PAGE_TITLE_INDEX_WELCOME}" />
+               </ui:define>
+
+               <ui:define name="content_header">
+                       <h:outputText value="#{msg.CONTENT_TITLE_INDEX_WELCOME}" />
+               </ui:define>
 
+               <ui:define name="content">
+                       <div class="para">
+                               <h:outputText value="#{msg.CONTENT_PAGE_INDEX_PARA1}" />
+                       </div>
+
+                       <div class="para">
+                               <h:outputText value="#{msg.CONTENT_PAGE_INDEX_PARA2}" />
+                       </div>
+
+                       <div class="para">
+                               <h:outputText value="#{msg.CONTENT_PAGE_INDEX_PARA3}" />
+                       </div>
+               </ui:define>
+       </ui:composition>
+</html>