demetrio812

13 September 2007

Upgrade RichFaces library from 3.0.X to 3.1.0 in a seam-gen generated project

Hi,
to upgrade a seam-gen generated project to the new RichFaces version (here the demo) you have to modify the build.xml file.

Here the steps:
  1. Download the latest version of RichFaces library (3.1.0) from here;
  2. Delete ajax4jsf*.jar and richfaces*.jar in the project lib directory;
  3. Copy the new richfaces jars to the project lib directory (those are 3 jar files: api, impl and ui)
  4. Open build.xml of the project
  5. In the war target, delete the following 2 lines:
    <include name="ajax4jsf*.jar" />
    <include name="richfaces*.jar" />
  6. At the same place put those lines:
    <include name="richfaces-impl*.jar" />
    <include name="richfaces-ui*.jar" />
  7. Staying in build-xml, go to ear target and put this line inside the <fileset dir="${basedir}"> tag:
    <include name="richfaces-api*.jar" />
You are done, execute ant clean and redeploy the project :)

Update: there are some problems with page parameter propagation with Seam and RichFaces 3.1.0.GA. This has been fixed in RichFaces 3.1.1 snapshots since 18/09/2007. The RichFaces snapshot distributed with Seam 2.0.0.CR1 is also the fixed version.

Demetrio

3 Comments:

  • Thanks for the short guide

    just to add a couple things
    1. Make sure you change the xmlns for Ajax4JSF
    From xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
    To
    xmlns:a4j="http://richfaces.org/a4j"

    2. And for RichFaces
    From
    xmlns:rich="http://richfaces.ajax4jsf.org/rich"
    To
    xmlns:rich="http://richfaces.org/rich"

    I think the old URLs are still active but will probably be deprecated in the future.

    3. Also make sure any Seam UI components that are being deprecated are swapped for their RichFaces counterparts. The Seam Calendar is one example.

    By Blogger Unknown, At September 13, 2007 at 7:02 PM  

  • Thanks to you for the other informations... :)

    demetrio

    By Blogger demetrio.it, At September 13, 2007 at 7:20 PM  

  • One more thing I forgot

    You must add richfaces-api-3.1.0.jar to your application.xml file (if that was not apparent already)

    By Blogger Unknown, At September 14, 2007 at 3:22 PM  

Post a Comment

Subscribe to Post Comments [Atom]



<< Home