Pessoal boa tarde!
Novamente venho pedir uma ajuda, é o seguinte, eu configurei meu projeto web com JPA e tudo mais, ficou ótimo. Porém quando fui adicionar as coisas mais óbvias e simples como o richfaces me tomaram dois dias e nada de progresso.
Já tentei milhões configurações no web.xml e nada.
Eu entrei no site do jboss e baixei a versão 3.3.3 CR1 e coloquei a lib richfaces-imp-jsf2-3.3.3-CR1 no lugar da imp normal, como o próprio site informa.
Não da erro nenhum, só que a página vem em branco, o mais estranho é que eu coloquei um componente do próprio jsf/html um h:commandButton e ele também não aparece. Mesmo retirando tudo (richfaces, a4j) e só deixando a tag dele, ele também não aparece.
Então sei sei se é somente o richfaces ou algo que estou fazendo de errado.
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>emeraldTown</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param>
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>faces/index.xhtml</welcome-file>
</welcome-file-list>
</web-app>
<?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:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
<a4j:form>
teste
<rich:panel header="teste">//não aparece
teste//aparece
<h:commandButton label="auehuaeh" action="#{Teste.teste('Voilá')}"/> //não aparece
</rich:panel>
<ui:insert name="body"/>
</a4j:form>
</h:body>
</html>
Alguma sugestão?!!
Abraços