guimoz
albama
O curioso é que coloquei os jars e fiz deploy no tomcat6 a aplicação está funcionando normalmente.
Todos os botões estão funcionando.
guimoz
entao ta funcionando ou naum ?
albama
Está funcionando no Tomcat6 , mas quando faço deploy no servidor Jboss não aparece os botões.
Segue um código :
Página test.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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<f:view contentType="text/html">
<head>
<title>11:13</title>
</head>
<body>
<h:form>
<h:outputText value="Teste de form" />
</h:form>
</body>
</f:view>
</html>
Segue uma página de template que estou usando
Menu01.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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">
<ui:composition template="/templates/template.xhtml">
<ui:define name="title">
Tela de Exemplo
</ui:define>
<ui:define name="menu">
<h:form>
<h:panelGrid columns="1">
<h:commandButton action="cabecalho" value="cabecalho"></h:commandButton>
<h:commandButton action="telaExemplo" value="telaExemplo"></h:commandButton>
<h:commandButton action="cabecalho" value="corpo01"></h:commandButton>
</h:panelGrid>
</h:form>
</ui:define>
</ui:composition>
</html>
Segue o template
template.xhtml
<?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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>
<ui:insert name="title">Meu Primeiro Template</ui:insert>
--- Introdução a Facelets
</title>
<style type="text/css">
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
}
.header {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 18px;
}
.bottom {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
text-align: center;
vertical-align: middle;
color: #8E969D;
}
</style>
</head>
<body bgcolor="#ffffff" >
<table style="border:1px solid #CAD6E0" align="center" cellpadding="0" cellspacing="0" border="1" width="100%">
<tbody>
<tr>
<td colspan="2" class="header" height="42" align="center" valign="middle" width="100%" bgcolor="#E4EBEB">
<ui:insert name="header">Cabeçãlho</ui:insert>
</td>
</tr>
<tr>
<td height="200">
<ui:insert name="menu">Menu</ui:insert>
</td>
<td align="center" width="90%" valign="middle">
<ui:insert name="body">Corpo</ui:insert>
</td>
</tr>
<tr>
<td colspan="2" valign="bottom" height="1" width="100%" bgcolor="#CAD6E0">
<ui:insert name="footer">Rodapé</ui:insert>
</td>
</tr>
</tbody>
</table>
</body>
</html>
albama
Uma coisa que reparei é a implementação que está no JBOSS 4.2.2GA :
richfaces-api-3.2.2.SR1.jar
richfaces-impl-3.2.2.SR1.jar
richfaces-ui-3.2.2.SR1.jar
E no tomcat eu adciono
richfaces-api-3.2.0-SNAPSHOT.jar
richfaces-impl-3.2.0-SNAPSHOT.jar
richfaces-ui-3.2.0-SNAPSHOT.jar
guimoz
tenta usar os jars da ultima atualização
albama
RESOLVIDO.
JBOSS + FACELETS + RICHFACES + JSF
1.Eu baixei uma versao mais nova do richfaces
2.Coloquei no lib do meu projeto web
3. Fiz deploy no Jboss
4. Executei a aplicação.
Muito obrigado pela ajuda.