Galera,
Tenho os seguintes arquivos
template.xhtml
<!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://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:e="http://www.enverio.com/jsf"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="/css/css.css" rel="stylesheet" type="text/css" />
<title>Any title</title>
<ui:insert name="head" />
</head>
<body>
<div id="page">
<div id="form" class="form">
<h:form prependId="false">
<div id="content">
<ui:insert name="body">
Default Body
</ui:insert>
</div>
</h:form>
</div>
</div>
<div id="footer">
<div>Any text</div>
</div>
</body>
</html>
<!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://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:e="http://www.enverio.com/jsf"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>
<body>
<ui:composition template="/template/template.xhtml">
<ui:define name="page"></ui:define>
<ui:include src="/lista.xhtml" />
</ui:composition>
</body>
</html>
<!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://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:e="http://www.enverio.com/jsf"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>
<body>
<h:dataTable var="lst" rendered="#{not empty customerHandler.lista}" value="#{customerHandler.lista}">
<f:facet name="header"><h:outputText value="Table of cusotmers" /></f:facet>
<h:column>
<f:facet name="header">
<h:outputText value="Nome" />
</f:facet>
<h:outputText value="#{lst.name}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Email" />
</f:facet>
<h:outputText value="#{lst.email}"/>
</h:column>
</h:dataTable>
</body>
</html>
Como fazer para incluir o arquivo lista.xhtml no arquivo home.xhtml?
Como fazer para que os estilos aplicados no template.xhtml (css) seja repassados para o arquivo home.xhtml?
Pessoal, já tentei de diversas formas, todas sem sucesso. Por favor se alguém puder me ajudar eu agradeço muito.
Obrigado