Erro ao usar facelets+richfaces

1 resposta
M

Galera blz?

Seguinte, criei um projeto, utilizando JSF 2.0 e tal, para montar os meus templates, irei usar facelets, incluir todos os jars direitinho, inclusive os do richfaces+ os dos facelets, ele cria os arquivos xhtml, roda sem problema, porém quando eu vou adicionar as o richfaces é que dá erro, se eu criar um .jsp e utilizar richfaces, roda sem problema, o problema acontece quando vou integrar o richfaces ao xhtml, quando tento inserir xmln:"http://richfaces.org/rich", ele não aceita aparece um sinal amarelo de avertencia, qualquer codigo q eu digitar ali, ele compila blz, porém, ele desconsidera o richfaces.

pra utilizar richfaces+facelets, tem alguma configuração extra.

 Agradeço a quem puder me ajudar!

1 Resposta

M

Segue abaixo, meu arquivo web.xm.
meu faces.config.xml ta normal, só adicionei meu managed bean

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
  <display-name>VACINA</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
  <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>*.jsf</url-pattern>
  </servlet-mapping>
  <context-param>
    <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
  </context-param>
  <context-param>
    <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
    <param-value>resources.application</param-value>
  </context-param>
  <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
  </listener>
</web-app>
Criado 13 de fevereiro de 2011
Ultima resposta 13 de fev. de 2011
Respostas 1
Participantes 1