Ajax4jsf 快速起步
一、准备工作
1.下载文件:
http://labs.jboss.com/jbossrichfaces/downloads
当前最新的版本是3.10,9月12日发布的。
2.安装。
??? 解压后,将"richfaces-api-3.1.0.jar" , "richfaces-impl-3.1.0.jar" , "richfaces-ui-3.1.0.jar"这三个文件拷贝到WEB-INFO/lib目录下,
?? 修改web.xml,应该是这个样子:
- <?xml?version="1.0"?>??
- <web-app?version="2.4"?xmlns="http://java.sun.com/xml/ns/j2ee"??
- ????xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"??
- ????xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee???? ??
- http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">??
- ????<display-name>togglePanel</display-name>??
- ????<context-param>??
- ????????<param-name>org.richfaces.SKIN</param-name>??
- ????????<param-value>blueSky</param-value>??
- ????</context-param>??
- ????<context-param>??
- ????????<param-name>javax.faces.STATE_SAVING_METHOD</param-name>??
- ????????<param-value>server</param-value>??
- ????</context-param>??
- ????<filter>??
- ????????<display-name>RichFaces?Filter</display-name><