Sie müssen die neuesten facelets, richfaces 3.3.3 und jsf 2.x Bibliotheken hinzufügen. das ist meine web.xml Config-i für mein Projekt bin mit:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 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_2_5.xsd">
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Production</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>
<context-param>
<param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name>
<param-value>true</param-value>
</context-param>
<!--Configuration for Richfaces-->
<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>
<!--End of the configuration part for Richfaces-->
<!--Configuration for Facelets-->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.jsp</param-value>
</context-param>
<context-param>
<param-name>facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEFORE_RESTORE</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>facelets.VIEW_MAPPINGS</param-name>
<param-value>*.xhtml</param-value>
</context-param>
<context-param>
<param-name>facelets.SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>
<!--End of the configuration part for Facelets-->
<welcome-file-list>
<welcome-file>faces/index.jsp</welcome-file>
</welcome-file-list>
</web-app>
und das ist, was Sie auf meiner Bibliothek finden: standard.jar (für JSTL)
jstl.jar (für JSTL)
JSF-facelets.jar (Facelets 1. 1. 15)
Richfaces-api-3.3.3.Final.jar
Richfaces-Umsetz-jsf2-3 .3. 3.Final.jar
Richfaces-ui-3.3.3.Final.jar
commons-Beanutils-1.8.3.jar
commons-Sammlungen-3.2. 1.jar
commons-Kocher-2.0.jar
commons-logging-1.1.1.jar
JSF-api.jar (für JSF2)
JSF-impl.jar (für JSF2)
HTH.
Er fragt nach Richfaces 3.3.3. Richfaces 4.M1 ist noch lange nicht fertig. – pakore
Ich denke, es kommt darauf an, was das OP verlangt. Wenn es das Ziel ist, RichFaces 3.3.3 zu testen, sollte JSF 1.2 verwendet werden (es gibt wirklich nicht viel, was JSF2 hinzufügt). Wenn die Verwendung JSF2-Features testen möchte, sollte RichFaces 4 verwendet werden (M1). –