RichFaces-Ajax4JSF

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
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

  1. Download Resin from http://caucho.com/download
  2. Unzip Resin into /usr/local/share/resin
  3. 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)
  4. Extract files from the archive and change into directory that now contains the extracted files
  5. Set MAVEN_OPTS to help maven allocated some memory e.g. export MAVEN_OPTS=-Xmx512M
  6. Build the samples using mvn -Dmaven.test.skip=true install
  7. After the build process completes each sample directory under samples will have a target directory where you'll find a war file
  8. Create directory /usr/local/share/resin/webapps/calendar-sample
  9. Copy calendar-sample.war file from ./samples/calendar-sample/target to /usr/local/share/resin/webapps/calendar-sample
  10. Extract the archive using jar -xf calendar-sample.jar and delete calendar-sample.jar file
  11. From the WEB-INF/lib directory delete the following files: jsf-api-1.2*.jar jsf-api-1.2*.jar jstl-1.0.jar
  12. 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>
    
  13. cd into /usr/local/share/resin/bin directory and start Resin with ./httpd.sh
  14. Browse to http://localhost:8080/calendar-sample/index.jsf

Known Issues

Personal tools