RichFaces-Ajax4JSF
From Resin 3.0
(Difference between revisions)
m (New page: ...) |
m |
||
Line 1: | Line 1: | ||
− | ... | + | == Step by Step (Deploying RichFaces Sample Application) == |
+ | |||
+ | ''[Tested with Resin 3.1.6 and Richfaces 3.1.4.GA]'' | ||
+ | |||
+ | ===Deploying Calendar-Sample Application=== | ||
+ | <ol> | ||
+ | <li>Download Resin from http://caucho.com/download | ||
+ | <li>Unzip Resin into /usr/local/share/resin | ||
+ | <li>Download Richfaces 3.1.4 distribution from http://www.jboss.org/jbossrichfaces/downloads/ (you will need one that comes with sources i.e. with -src in the name) | ||
+ | <li>Extract files from the archive and change into directory that now contains the extracted files | ||
+ | <li>Set MAVEN_OPTS to help maven allocated some memory e.g. export MAVEN_OPTS=-Xmx512M | ||
+ | <li>Build the samples using mvn -Dmaven.test.skip=true install | ||
+ | <li>After the build process completes each sample directory under samples will have a target directory where you'll find a war file | ||
+ | <li>Create directory /usr/local/share/resin/webapps/calendar-sample | ||
+ | <li>Copy calendar-sample.war file from ./samples/calendar-sample/target to /usr/local/share/resin/webapps/calendar-sample | ||
+ | <li>Extract the archive using jar -xf calendar-sample.jar and delete calendar-sample.jar file | ||
+ | <li>From the WEB-INF/lib directory delete the following files: jsf-api-1.2*.jar jsf-api-1.2*.jar jstl-1.0.jar | ||
+ | <li>Change into WEB-INF directory and create resin-web.xml file with the following content | ||
+ | <code><pre> | ||
+ | <?xml version="1.0" encoding="UTF-8"?> | ||
+ | <web-app xmlns="http://caucho.com/ns/resin"> | ||
+ | |||
+ | <jsp fast-jsf="false"/> | ||
+ | |||
+ | <allow-servlet-el>false</allow-servlet-el> | ||
+ | |||
+ | <context-param> | ||
+ | <param-name>org.richfaces.SKIN</param-name> | ||
+ | <param-value>#{skinBean.skin}</param-value> | ||
+ | </context-param> | ||
+ | |||
+ | </web-app> | ||
+ | </pre></code> | ||
+ | <li>cd into /usr/local/share/resin/bin directory and start Resin with ./httpd.sh | ||
+ | <li>Browse to http://localhost:8080/calendar-sample/index.jsf | ||
+ | </ol> | ||
+ | |||
+ | ==Known Issues== |
Revision as of 04:45, 26 April 2008
Step by Step (Deploying RichFaces Sample Application)
[Tested with Resin 3.1.6 and Richfaces 3.1.4.GA]
Deploying Calendar-Sample Application
- Download Resin from http://caucho.com/download
- Unzip Resin into /usr/local/share/resin
- Download Richfaces 3.1.4 distribution from http://www.jboss.org/jbossrichfaces/downloads/ (you will need one that comes with sources i.e. with -src in the name)
- Extract files from the archive and change into directory that now contains the extracted files
- Set MAVEN_OPTS to help maven allocated some memory e.g. export MAVEN_OPTS=-Xmx512M
- Build the samples using mvn -Dmaven.test.skip=true install
- After the build process completes each sample directory under samples will have a target directory where you'll find a war file
- Create directory /usr/local/share/resin/webapps/calendar-sample
- Copy calendar-sample.war file from ./samples/calendar-sample/target to /usr/local/share/resin/webapps/calendar-sample
- Extract the archive using jar -xf calendar-sample.jar and delete calendar-sample.jar file
- From the WEB-INF/lib directory delete the following files: jsf-api-1.2*.jar jsf-api-1.2*.jar jstl-1.0.jar
- Change into WEB-INF directory and create resin-web.xml file with the following content
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://caucho.com/ns/resin"> <jsp fast-jsf="false"/> <allow-servlet-el>false</allow-servlet-el> <context-param> <param-name>org.richfaces.SKIN</param-name> <param-value>#{skinBean.skin}</param-value> </context-param> </web-app>
- cd into /usr/local/share/resin/bin directory and start Resin with ./httpd.sh
- Browse to http://localhost:8080/calendar-sample/index.jsf