title.xhtml
1.54 KB
<?xml version="1.0" encoding="ISO-8859-1" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:composite="http://java.sun.com/jsf/composite"
xmlns:fn="http://java.sun.com/jsp/jstl/functions">
<ui:composition>
<composite:interface>
<composite:attribute name="text" required="true" />
<composite:valueHolder name="oTitle" />
<composite:facet name="header" />
<composite:facet name="footer" />
</composite:interface>
<composite:implementation>
<h:panelGrid columns="1" rendered="#{not empty compositeComponent.facets.header}">
<composite:insertFacet name="header" />
</h:panelGrid>
<h:panelGroup>
<h1>
<h:outputText id="otTitle" value="#{compositeComponent.attrs.text}" />
<span style="font-size: small; color: gray; font-family: serif"><h:outputLabel value="#{fn:toLowerCase(compositeComponent.resourceBundleMap.version)}" /></span>
</h1>
</h:panelGroup>
<h:panelGroup rendered="#{not empty compositeComponent.children}">
<div style="border: 1px dotted gray; padding: 10px; margin: 10px">
<composite:insertChildren />
</div>
</h:panelGroup>
<h:panelGrid columns="1" rendered="#{not empty compositeComponent.facets.footer}">
<composite:insertFacet name="footer" />
</h:panelGrid>
</composite:implementation>
</ui:composition>
</html>