oi sou iniciante em desenvolvimento web e estou tendo algumas dificuldades com templates
quando seleciono um item no menu, ex Apartamento ele joga pra minha pagina criada mais exibe a seguinte mensagem:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<ui:composition xmlns:ui=“http://java.sun.com/jsf/facelets” template=“temp/template.xhtml”>
<ui:define name=“corpo”>ttt</ui:define>
</ui:composition>
minha index.xhtml
[code]<?xml version='1.0' encoding='UTF-8' ?>
<ui:composition xmlns:ui=“http://java.sun.com/jsf/facelets”
template=“temp/template.xhtml”>
</ui:composition>[/code]
meu template.xhtml
[code]<?xml version="1.0" encoding="UTF-8"?>
<f:view xmlns=“http://www.w3.org/1999/xhtml”
xmlns:ui=“http://java.sun.com/jsf/facelets”
xmlns:h=“http://java.sun.com/jsf/html”
xmlns:p=“http://primefaces.org/ui”
xmlns:f=“http://java.sun.com/jsf/core”>
<h:head>
SGH - Sistema de Gestão de Hotéis
</h:head>
<h:body>
<h:form id="form">
<ui:insert name="cabecalho">
<center><h:graphicImage value="img/logoSGI.png"/></center>
</ui:insert>
<ui:include src="menu.xhtml">
</ui:include>
<div class="corpo">
<h:messages id="mensagens" globalOnly="true" />
<ui:insert name="corpo" />
</div>
</h:form>
</h:body>
</html>
</f:view>[/code]
meu menu.xhtml
[code]<?xml version="1.0" encoding="UTF-8"?>
<p:toolbarGroup xmlns:p=“http://primefaces.org/ui”>
<p:menubar>
<p:submenu label="Cadastros">
<p:menuitem value="Apartemanto" url="apartamento/pesquisar.xhtml"/>
<p:menuitem value="Funcionário" action="pagina2" />
<p:menuitem value="Hospede" action="pagina3" />
</p:submenu>
<p:menuitem value="Hospedagem"/>
</p:menubar>
</p:toolbarGroup>[/code]
e a minha pagina de pesquisar.xhtml
[code]<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns:ui=“http://java.sun.com/jsf/facelets”
template=“temp/template.xhtml”>
<ui:define name="corpo">
ttt
</ui:define>
</ui:composition>[/code]
além disso ele tambem ta reclamando de que o menu precisa de um form:
The button/link/text component needs to have a Form in its ancestry. Please add <h:form>.
se alguem puder me ajudar eu agradeço muito