Pessoal, mais uma etapa da minha briga com o sistema:
Estou aqui tentando aprender Facelets, ja fucei a documentacao, peguei algumas "receitas de bolo" na internet, porem o problema persiste:
Eu crio um template,xhtml, marco as posições e entao vou criar os devidos *.xhtml para as posicoes que marquei: EIS QUE NAO ACONTECE NADA !!!
Quando eu executo no meu navegador, apenas o que esta no template.xhtml e mostrado na tela, perfeitamente por sinal, so que ele não tras para a tela o arquivo que eu quero que aparece no conteudo, nem ferrando !
Alguem ja passou por algum problema semelhante para me dar uma luz ?
Mais uma vez muito obrigado !
Meus XHTML:
template.xhtml
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!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:rich="http://richfaces.ajax4jsf.org/rich">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link href="./css/default.css" rel="stylesheet" type="text/css" />
<link href="./css/cssLayout.css" rel="stylesheet" type="text/css" />
<title>WebTarefas 2.0</title>
</head>
<body>
<div id="top">
<ui:insert name="top">Topo</ui:insert>
</div>
<div>
<div id="content" class="right_content">
<ui:insert name="Conteudo">
</ui:insert>
</div>
</div>
<div id="bottom">
<ui:insert name="bottom">Rodape</ui:insert>
</div>
</body>
</html>
meu arquivo setor.xhtml (conteudo que eu quero carregar na marcação Conteudo)
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.ajax4jsf.org/rich"
template="./template.xhtml">
<ui:define name="Conteudo">
<body>
<f:view>
<h1><h:outputText value="Cadastro de Setores" /></h1>
<h:form>
<h:dataTable value="#{setorManaged.setores}" var="st">
<h:column>
<f:facet name="header">
<h:outputText value="Setor"/>
</f:facet>
<h:outputText value="#{st.setor}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Descrição"/>
</f:facet>
<h:outputText value="#{st.descricao}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Alterar"/>
</f:facet>
<h:commandLink value="Alterar" action="#{setorManaged.alterar}">
<f:setPropertyActionListener value="#{st.idSetor}"
target="#{setorManaged.setor.idSetor}" />
</h:commandLink>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Excluir"/>
</f:facet>
<h:inputHidden value="#{setorManaged.setor.idSetor}" />
<h:commandLink value="Excluir" action="#{setorManaged.excluir}" >
<f:setPropertyActionListener value="#{st.idSetor}"
target="#{setorManaged.setor.idSetor}" />
</h:commandLink>
</h:column>
</h:dataTable>
<h:inputText value="#{setorManaged.setor.setor}" />
<h:inputText maxlength="100" value="#{setorManaged.setor.descricao}" size="100" />
<h:commandButton value="Cadastrar" action="#{setorManaged.inserir}" />
</h:form>
</f:view>
</body>
</ui:define>
</ui:composition>