`
ericslegend
  • 浏览: 85911 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Richfaces上手

    博客分类:
  • Java
阅读更多

1.OnlineDemo:http://livedemo.exadel.com/richfaces-demo/richfaces/effect.jsf?c=effect

2.下载最新的richfaces组件

       下载地址:http://www.jboss.org/jbossrichfaces/downloads/

 

3.安装

包:commons-beanutils.jar  commons-collections-3.2.jar  commons-digester.jar  commons-logging.jar

jhighlight-1.0.jar  richfaces-api-3.2.2.GA.jar  richfaces-impl-3.2.2.GA.jar  richfaces-ui-3.2.2.GA.jar

 

 

web.xml中添加如下内容:

 

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>TSysWebClient</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
  <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>org.richfaces.SKIN</param-name>
  <param-value>classic</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>
  
</web-app>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics