Hamma
Nb : Vous trouvez ce projet sous forme d’un jar dans le dossier projects. II. création projet « RichfacesProject »
Dans ce tuto on va apprendre comment créer un projet jsf richfaces sous éclipse.
Au début créer un nouveau projet, File->New et sélectionner DynamicWebProject.
Entrez le nom du projet et cliquez sur finish
Ajouter la facet jsf(version 1.2)
Ajouter ces jars au dossier WEB-INF\lib.
Copiez et collez ces lignes dans le descripteur de déploiement web.xml
<?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"> <display-name>RichefacesProject</display-name> <context-param> <param-name>org.richfaces.CONTROL_SKINNING</param-name> <param-value>enable</param-value> </context-param> <context-param> <param-name>org.richfaces.SKIN</param-name> <param-value>h</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> <listener> <listener-class>com.sun.faces.config.ConfigureListener</listener-class> </listener>