eis o cenario, estou estruturando o template q vai ser usado por um app, vou utilizar o facelets, a estrutura é a seguinte:
:arrow: cabealho
:arrow: futuramente um menu
:arrow: conteudo
:arrow: rodape
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<link href="#{facesContext.externalContext.request.contextPath}/css/myStyle.css"
rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="corpo">
<ui:insert name="geral"></ui:insert>
<div id="cabecalho">
<ui:insert name="cabecalho"></ui:insert>
</div>
</div>
</body>
</html>
#cabecalho{
margin-top: 0px;
background: red;
height: 10em;
}
#corpo {
border: 1px solid Black ;
margin: 0 auto;
width: 768px;
}
<!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">
<head></head>
<body>
<ui:composition template="template.xhtml">
<ui:define name="geral">
<ui:define name="cabecalho"></ui:define>
<h:outputText value="teste"/>
</ui:define>
</ui:composition>
</body>
</html>
qnd executo, ele printa na tela o
alguem ja teve esse problema com facelets? como eu resolvo ?
pq isso acontece?