PrimeFaces and RichFaces Integration
Popular JSF component suites PrimeFaces and RichFaces can be used together with no problems. If you have a Seam-Gen project or a RichFaces project, you can follow these steps.
Firstly,
With Seam 2.2 and JSF 1.2,
Used JARs :
primefaces-1.0.0-SNAPSHOT.jar
richfaces-ui-3.3.2.GA.jar
richfaces-impl-3.3.2.GA.jar
richfaces-api-3.3.2.GA.jar
slf4j-api-1.5.8.jar (Not Needed for PrimeFaces >= version 0.9.3)
slf4j-jdk14-1.5.8.jar (Not Needed for PrimeFaces >= version 0.9.3)
You can find and download these jars at www.findjar.com
Also some modifications are needed on web.xml
Just add this code snippet into web.xml
< servlet>
< servlet-name>Resource Servlet
< servlet-class>org.primefaces.resource.ResourceServlet
< load-on-startup>1
< /servlet>
< servlet-mapping>
Resource Servlet
< url-pattern>/primefaces_resource/*
< /servlet-mapping>
I advice you to use Facelets. The reason is here.
After the modifications in web.xml, You must declare primefaces tag library in pages as shown below
xmlns:prime="http://primefaces.prime.com.tr/ui"
< prime:resources/>
to reach PrimeFaces's JSs and CSSs.
Finally,
PrimeFaces and Seam are ready for serving :)
You can check PrimeFaces ShowCase and RichFaces LiveDemo for how to use components.
Finally,
PrimeFaces and Seam are ready for serving :)
You can check PrimeFaces ShowCase and RichFaces LiveDemo for how to use components.
This entry was posted
on Perşembe, Mart 11, 2010
at Perşembe, Mart 11, 2010
and is filed under
integration,
jsf,
primefaces,
richfaces
. You can follow any responses to this entry through the
comments feed
.

