Pessoal estou com um problema e não conheço muito Facelets, o problema eh o seguinte:
tenho um template:
<?xml version="1.0" encoding="UTF-8"?>
<!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"
xmlns:rich="http://richfaces.org/rich"
xmlns:jsp="http://java.sun.com/JSP/Page">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<link id="sgdtCss" rel="stylesheet" type="text/css" href="/SGDT/resources/css/sgdt.css" />
<link id="chartCss" rel="stylesheet" type="text/css" href="/SGDT/resources/net.sf.jschart/chart.css" />
<script id="jsSac" type="text/javascript" src="/SGDT/resources/js/util.js"></script>
<title>Sistema de Gestão de Demanda de TI - SGDT
<ui:insert name="title">Teste</ui:insert>
</title>
</head>
<body>
<table style="left: 0px;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tbody>
<tr>
<td height="42" align="center" valign="middle" width="100%" bgcolor="#E4EBEB">
<ui:insert name="header">
<!-- <img src="/resources/imagens/img_logo_cnu4.jpg" />-->
<h:form id="formCabec">
<h:panelGrid columns="4" width="100%"
style="left: 0px; top: 0px; height: 70px; border: 0px; position: absolute;"
cellpadding="0" cellspacing="0" bgcolor="#006400">
<h:panelGrid width="30%" style="valign: top;">
<h:graphicImage value="/resources/imagens/img_logo_cnu4.jpg"></h:graphicImage>
</h:panelGrid>
<h:panelGrid width="100%" style="height 64px; text-align: right;" cellpadding="0" cellspacing="0">
<h:graphicImage value="/resources/imagens/bg_topo.jpg" height="70px"></h:graphicImage>
</h:panelGrid>
</h:panelGrid>
</h:form>
</ui:insert>
</td>
</tr>
<tr bgcolor="red">
<td>
<ui:insert name="menu">
<h:form id="formMenu">
<h:panelGrid width="100%" style="left: 0px; position: absolute;z-index:500; text-align: right;"
cellpadding="0" cellspacing="0">
<rich:toolBar style="border: 0px;horizontal-align:middle;z-index:1;margin-left: auto; background-image: url(/SGDT/resources/imagens/fundoMenu.JPG); margin-right: auto; position: relative; left: 0px; top: 72px;height: 27px;"
binding="#{menuMB.htmlToolBar}"/>
<h:panelGrid binding="#{menuMB.pgMensagem}" width="100%">
<h:outputText style="left: 0px; top: 100px;position:absolute;" value="Acesso negado, favor entrar em contato com o administrador do sistema." styleClass="subTitulo"/>
</h:panelGrid>
</h:panelGrid>
</h:form>
</ui:insert>
</td>
</tr>
<tr>
<td>
<ui:insert name="body"></ui:insert>
</td>
</tr>
<tr bgcolor="green">
<td height="42" align="center" valign="middle" width="100%" bgcolor="#E4EBEB">
<ui:insert name="footer">
<h:form id="formFooter">
<h:panelGrid columns="3" style="heigth: 18px; background-image: url(/SGDT/resources/imagens/fundoMenu.JPG);" border="0" cellpadding="0"
cellspacing="0" width="100%">
<h:panelGrid width="10%">
<h:graphicImage value="/resources/imagens/numero_ans_adm.gif" style="border: 0px; align: center;"></h:graphicImage>
</h:panelGrid>
<h:panelGrid width="80%" style="vertical-align: middle; text-align: center;">
<h:outputText value="Copyright © 2008 Central Nacional Unimed. Todos os direitos reservados." styleClass="labelRodape"></h:outputText>
</h:panelGrid>
<h:panelGrid style="vertical-align: middle; text-align: right;">
<h:outputText value="Versão 0.1" styleClass="labelRodape"></h:outputText>
</h:panelGrid>
</h:panelGrid>
</h:form>
</ui:insert>
</td>
</tr>
</tbody>
</table>
</body>
</html>
e tenho minha pagina index.xhtml, que é a página inicial do sistema, a pagina é a seguinte:
<!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>
<ui:composition template="/template.xhtml">
<ui:define name="title">cadastro</ui:define>
<ui:define name="body">
<h:form>
<input type="submit" jsfc="h:commandButton" id="submit"
action="greeting" value="Say Hello" />
</h:form>
</ui:define>
</ui:composition>
</body>
</html>
quando rodo minha aplicação, não aparece todas as imagens do template. e também o menu do richfaces não funciona… alguém sabe pq??