Bom galera, estou começando a estudar facelets e naum to conseguindo fazer funcionar um tutorial que estava seguindo. O erro diz que: O documento XML naum esta associado a estilos.
abaixo segue os meus códigos:
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:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<body>
<table>
<tr>
<td colspan="2">
<ui:insert name="topo">
<ui:include src="topo.xhtml"/>
</ui:insert>
</td>
</tr>
<tr>
<td>
<ui:insert name="menu">
<ui:include src="menu.xhtml"/>
</ui:insert>
</td>
<td>
<ui:insert name="principal" />
</td>
</tr>
<tr>
<td colspan="2">
<ui:insert name="rodape">
<ui:include src="rodape.xhtml"/>
</ui:insert>
</td>
</tr>
</table>
</body>
</html>
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<ui:fragment>
<h:form>
<ul>
<li>
<h:commandLink action="fornecedores">
Fornecedores
</h:commandLink>
</li>
<li>
Clientes
</li>
</ul>
</h:form>
</ui:fragment>
</html>
<html
template="./template.xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<ui:composition>
<ui:define name="principal">
<h:form>
<h:inputHidden value="#{fornecedorMB.fornecedor.id}" id="idFornecedor" />
<h:panelGrid columns="2">
<h:outputLabel value="Nome" for="iNome" />
<h:inputText value="#{fornecedorMB.fornecedor.nome}" id="iNome" />
<h:outputLabel value="Cnpj" for="iCnpj" />
<h:inputText value="#{fornecedorMB.fornecedor.cnpj}" id="iCnpj" />
</h:panelGrid>
<h:messages showDetail="true" showSummary="true" />
<h:commandButton action="#{fornecedorMB.doSalvar}" value="Salvar" />
<h:commandButton action="#{fornecedorMB.doExcluir}" value="Excluir" />
</h:form>
</ui:define>
</ui:composition>
</html>