RichFaces quick installation guides
To install RichFaces component library you should first download and import in you class path JAR files listed below:
richfaces-api.jar
richfaces-impl.jar
richfaces-ui.jar
Be sure that you already have installed and verified installation of standard JSF library. After you import JARs, you should add couple of lines in your web.xml file:
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</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>
Empty template for RichFaces JSP file will look like this:
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<HTML>
<f:view>
<HEAD>
<TITLE>Title</TITLE>
</HEAD>
<BODY>
<h:form>
YOUR CODE
</h:form>
</BODY>
</f:view>
</HTML>