Galera, estou começando a usar o facelets e já estou com problemas (para variar)!
Tenho 4 templates. O master.xhtm, footer.xhtml, top.xhtml e finalmente o content.xhtml.
O problema que está ocorrendo é que não estou conseguindo usar o footer e o topo.xhtml, entretanto o content.xhtml está renderizando numa boa!
Abaixo estão as paginas que ilustram este cenario:
master.xhtml
<?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://java.sun.com/jsf/html">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<h:outputStylesheet library="css" name="cssTemplate.css"/>
<link rel="icon" href="https://lab.accurate.com.br/request/s/300/1/_/images/icons/favicon.png" type="image/gif"/>
<title>Controle de Apontamento de Horas no JIRA</title>
</h:head>
<h:body>
<div id="all">
<div id="top">
<ui:insert name="topo"/>
</div>
<div id="content">
<ui:insert name="content"/>
<div id="clear"></div>
</div>
<div id="bottom">
<ui:insert name="footer"/>
</div>
</div>
</h:body>
</html>
footer.xhtm
[code]<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<ui:composition template="/pages/protected/templates/master.xhtml">
<ui:define name="footer">
<div id="footer" style="text-align: center">
<hr />
© 2012 Empresa XlYZ LTDA. Todos os direitos reservados.
</div>
</ui:define>
</ui:composition>
</html>
topo.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<ui:composition template="/pages/protected/templates/master.xhtml">
<ui:define name="topo">
<h:panelGroup id="pg1">
<h:outputText value="Esse é o Header do Sistema"/>
</h:panelGroup>
</ui:define>
</ui:composition>
</html>
Obrigado pela força desde já...
