Thursday, May 20, 2010

Integrating Richfaces with JSF

In my last post i have written JCaptcha in JSF. Today i will be discussing Integrating Richfaces with JSF
1) Add the following jar files to your project
a) richfaces-api-3.2.2.GA.jar
b) richfaces-impl-3.2.2.GA.jar
c) richfaces-ui-3.2.2.GA.jar

  Download all three jars here..
2) Add the following tag libraries to jsp pages

<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

3) Add the following code in web.xml

<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>

JSF Related topics: Errror handling in JSF, Customizing URL Pattern in JSF,Getting client and server sessionId in JSF,PopUp AlertMessagebox for JSF and more.....

No comments:

Post a Comment