<?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"
- xmlns:p="http://primefaces.org/ui"
- xmlns:pm="http://primefaces.org/mobile">
+<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"
+ xmlns:p="http://primefaces.org/ui"
+ >
+ <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.locale.language}"
+ xml:lang="#{localizationController.locale.language}"
+ xmlns="http://www.w3.org/1999/xhtml"
+ >
+ <ui:insert name="metadata" />
+
+ <f:view locale="#{localizationController.locale}" />
- <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.locale.language}" xml:lang="#{localizationController.locale.language}" xmlns="http://www.w3.org/1999/xhtml">
- <f:view locale="#{localizationController.locale}" contentType="text/html" />
<h:head>
<f:facet name="first">
- <ui:insert name="metadata" />
-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
</h:head>
<h:body>
- <pm:page id="master">
- <h:panelGroup styleClass="ui-fluid" layout="block">
- <pm:header>
- <h:panelGroup styleClass="page-header" layout="block">
- <p:outputPanel styleClass="ui-g">
- <p:outputPanel styleClass="ui-g-12 ui-md-9 ui-g-nopad">
- <h1>
- <h:outputText value="#{initParam['project_title']} - " />
-
- <ui:insert name="content_header">
- <h:outputText value="Default header title" />
- </ui:insert>
- </h1>
- </p:outputPanel>
-
- <p:outputPanel styleClass="ui-g-12 ui-md-3">
- <ui:include src="/WEB-INF/templates/widgets/locale_change_widget.tpl" />
- </p:outputPanel>
- </p:outputPanel>
- </h:panelGroup>
+ <h:panelGroup styleClass="ui-fluid" layout="block">
+ <h:panelGroup styleClass="page-header" layout="block">
+ <p:outputPanel styleClass="ui-g">
+ <p:outputPanel styleClass="ui-g-12 ui-md-9 ui-g-nopad">
+ <h1>
+ <h:outputText value="#{initParam['project_title']} - " />
+
+ <ui:insert name="content_header">
+ <h:outputText value="Default header title" />
+ </ui:insert>
+ </h1>
+ </p:outputPanel>
- <h:panelGroup styleClass="page-content-gap" layout="block">
- </h:panelGroup>
- </pm:header>
+ <p:outputPanel styleClass="ui-g-12 ui-md-3">
+ <ui:include src="/WEB-INF/templates/widgets/locale_change_widget.tpl" />
+ </p:outputPanel>
+ </p:outputPanel>
+ </h:panelGroup>
- <h:panelGroup styleClass="ui-g" layout="block">
- <h:panelGroup styleClass="ui-g-12 ui-md-12" layout="block">
- <ui:insert name="menu">
- <h:outputText value="Default menu" />
- </ui:insert>
- </h:panelGroup>
+ <h:panelGroup styleClass="page-content-gap" layout="block">
+ </h:panelGroup>
- <h:panelGroup styleClass="ui-g-12 ui-md-12 ui-g-nopad" layout="block">
- <h:panelGroup styleClass="ui-g-12">
- <ui:insert name="content">
- <h:outputText value="Default content" />
- </ui:insert>
- </h:panelGroup>
- </h:panelGroup>
+ <h:panelGroup styleClass="ui-g" layout="block">
+ <h:panelGroup styleClass="ui-g-12 ui-md-12" layout="block">
+ <ui:insert name="menu">
+ <h:outputText value="Default menu" />
+ </ui:insert>
+ </h:panelGroup>
- <h:panelGroup styleClass="ui-g-12 page-footer" layout="block">
- <ui:insert name="footer">
- <h:outputText value="Default footer" />
+ <h:panelGroup styleClass="ui-g-12 ui-md-12 ui-g-nopad" layout="block">
+ <h:panelGroup styleClass="ui-g-12">
+ <ui:insert name="content">
+ <h:outputText value="Default content" />
</ui:insert>
</h:panelGroup>
</h:panelGroup>
- <h:panelGroup styleClass="error-container" layout="block">
- <p:growl showDetail="true" sticky="true">
- <p:autoUpdate />
- </p:growl>
-
- <p:ajaxExceptionHandler
- type="java.lang.Throwable"
- update="exceptionDialog"
- onexception="PF('master:exception-dialog-form:exceptionDialog').show();"
- />
-
- <h:form id="exception-dialog-form">
- <p:dialog id="exceptionDialog" closable="true" closeOnEscape="true" header="Exception '#{pfExceptionHandler.type}' occured!" widgetVar="exceptionDialog"
- height="500px">
- <div class="para">
- <h:outputText value="#{msg.EXCEPTION_MESSAGE}:" />
- <h:outputText value="#{pfExceptionHandler.message}" />
- </div>
-
- <div class="para">
- <h:outputText value="#{msg.EXCEPTION_STACK_TRACE}:" />
- <h:outputText value="#{pfExceptionHandler.formattedStackTrace}" escape="false" />
- </div>
-
- <div class="para">
- <p:button onclick="window.location.href = document.location.href;"
- value="#{msg.RELOAD_PAGE}"
- rendered="#{pfExceptionHandler.type == 'javax.faces.application.ViewExpiredException'}" />
- </div>
- </p:dialog>
- </h:form>
+ <h:panelGroup styleClass="ui-g-12 page-footer" layout="block">
+ <ui:insert name="footer">
+ <h:outputText value="Default footer" />
+ </ui:insert>
</h:panelGroup>
</h:panelGroup>
- </pm:page>
+
+ <h:panelGroup styleClass="error-container" layout="block">
+ <p:growl showDetail="true" sticky="true">
+ <p:autoUpdate />
+ </p:growl>
+
+ <p:ajaxExceptionHandler
+ type="java.lang.Throwable"
+ update="exceptionDialog"
+ onexception="PF('master:exception-dialog-form:exceptionDialog').show();"
+ />
+
+ <h:form id="exception-dialog-form">
+ <p:dialog
+ id="exceptionDialog"
+ closable="true"
+ closeOnEscape="true"
+ header="Exception '#{pfExceptionHandler.type}' occured!"
+ widgetVar="exceptionDialog"
+ height="500px">
+ <div class="para">
+ <h:outputText value="#{msg.EXCEPTION_MESSAGE}:" />
+ <h:outputText value="#{pfExceptionHandler.message}" />
+ </div>
+
+ <div class="para">
+ <h:outputText value="#{msg.EXCEPTION_STACK_TRACE}:" />
+ <h:outputText value="#{pfExceptionHandler.formattedStackTrace}" escape="false" />
+ </div>
+
+ <div class="para">
+ <p:button onclick="window.location.href = document.location.href;"
+ value="#{msg.RELOAD_PAGE}"
+ rendered="#{pfExceptionHandler.type == 'javax.faces.application.ViewExpiredException'}" />
+ </div>
+ </p:dialog>
+ </h:form>
+ </h:panelGroup>
+ </h:panelGroup>
</h:body>
</html>
</ui:composition>