]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Mon, 7 Aug 2017 19:52:20 +0000 (21:52 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 7 Aug 2017 19:52:41 +0000 (21:52 +0200)
- attempt to rewrite to h:doctype, but still not rendered.

Signed-off-by: Roland Häder <roland@mxchange.org>
web/WEB-INF/templates/base.tpl

index 0bc8f17ca47f66b645ee3e9c9e2a8c687ef1bc4e..5bc1930a4790a1a875dc265dac6d9a61fbefe46f 100644 (file)
@@ -1,59 +1,73 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html lang="#{localizationController.language}" xml:lang="#{localizationController.language}" xmlns="http://www.w3.org/1999/xhtml">
-
-       <f:view locale="#{localizationController.locale}" contentType="text/html"
-                       xmlns:f="http://java.sun.com/jsf/core"
-                       xmlns:h="http://java.sun.com/jsf/html"
-                       xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+                               xmlns:f="http://java.sun.com/jsf/core"
+                               xmlns:h="http://java.sun.com/jsf/html"
+                               xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
 
+       <h:doctype rootElement="html" public="-//W3C//DTD XHTML 1.0 Transitional//EN" system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
+       <html lang="#{localizationController.language}" xml:lang="#{localizationController.language}" xmlns="http://www.w3.org/1999/xhtml">
                <ui:insert name="metadata" />
 
                <h:head>
-                       <meta http-equiv="Content-Type" content="text/htmlcharset=UTF-8" />
+                       <meta http-equiv="Content-Type" content="text/htmlcharset=UTF-8" />
 
                        <f:loadBundle var="msg" basename="org.mxchange.localization.bundle" />
 
                        <h:outputStylesheet name="/css/default.css" />
                        <h:outputStylesheet name="/css/cssLayout.css" />
 
-                       <title>JFinancials - <ui:insert name="title">Default title</ui:insert></title>
+                       <title>
+                               <h:outputText value="JFinancials" />
+                               <h:outputText value=" - " />
+                               <ui:insert name="title">
+                                       <h:outputText value="Default title" />
+                               </ui:insert>
+                       </title>
                </h:head>
 
                <h:body>
-                       <div id="top">
-                               <div id="page_header">
-                                       <div id="page_title">
-                                               <h1>JFinancials - <ui:insert name="title">Default title</ui:insert></h1>
+                       <f:view locale="#{localizationController.locale}" contentType="text/html">
+                               <div id="top">
+                                       <div id="page_header">
+                                               <div id="page_title">
+                                                       <h1>
+                                                               <h:outputText value="JFinancials" />
+                                                               <h:outputText value=" - " />
+                                                               <ui:insert name="title">
+                                                                       <h:outputText value="Default title" />
+                                                               </ui:insert>
+                                                       </h1>
+                                               </div>
                                        </div>
                                </div>
-                       </div>
-
-                       <h:panelGroup id="menu_content" layout="block">
-                               <div id="left">
-                                       <ui:insert name="menu">Default menu</ui:insert>
-                                       <ui:include src="/WEB-INF/templates/generic/locale_selection_box.tpl" />
-                               </div>
 
-                               <h:panelGroup id="content_outer" class="left_content" layout="block">
-                                       <div id="content_header">
-                                               <ui:insert name="content_header">Default content header</ui:insert>
+                               <h:panelGroup id="menu_content" layout="block">
+                                       <div id="left">
+                                               <ui:insert name="menu">Default menu</ui:insert>
+                                               <ui:include src="/WEB-INF/templates/generic/locale_selection_box.tpl" />
                                        </div>
 
-                                       <div id="content">
-                                               <ui:insert name="content">Default content</ui:insert>
-                                       </div>
-                               </h:panelGroup>
+                                       <h:panelGroup id="content_outer" class="left_content" layout="block">
+                                               <div id="content_header">
+                                                       <ui:insert name="content_header">Default content header</ui:insert>
+                                               </div>
 
-                               <div class="clear"></div>
-                       </h:panelGroup>
+                                               <div id="content">
+                                                       <ui:insert name="content">Default content</ui:insert>
+                                               </div>
+                                       </h:panelGroup>
 
-                       <h:panelGroup id="page_footer" layout="block">
-                               <ui:insert name="footer">Default footer</ui:insert>
-                       </h:panelGroup>
+                                       <div class="clear"></div>
+                               </h:panelGroup>
+
+                               <h:panelGroup id="page_footer" layout="block">
+                                       <ui:insert name="footer">Default footer</ui:insert>
+                               </h:panelGroup>
 
-                       <h:panelGroup styleClass="error_container" layout="block">
-                               <h:messages showDetail="true" errorClass="errors" fatalClass="errors" warnClass="errors" />
-                       </h:panelGroup>
+                               <h:panelGroup styleClass="error_container" layout="block">
+                                       <h:messages showDetail="true" errorClass="errors" fatalClass="errors" warnClass="errors" />
+                               </h:panelGroup>
+                       </f:view>
                </h:body>
-       </f:view>
-</html>
+       </html>
+</ui:composition>