Pessoal estou com um problema simples porêm chato.
Tenho estes jsp`s:
Include
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:subview id="menu">
<h1><h:outputText value="Menu"></h:outputText></h1>
</f:subview>
Página
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
</head>
<body>
<f:view>
<jsp:include page="templates/menu.jsp"/>
<h:form id="form">
Página Inicial<br><br>
<a href="Inicial2.jsf">Próximo >></a>
</h:form>
</f:view>
</body>
</html>
“Funciona” mas a renderização fica assim:
Menu
<h1></h1>
ao invés de
<h1>Menu</h1>
Já tentei tirar o “f:subview” do menu.jsp, incuir o include fora da tag “<h:form” dentro, mas continua com o mesmo problema.
Alguêm sabe resolver este caso, mas utilizando includes?
Sds
