The last days I read a lot about RichFaces and saw this cool live demo. RichFaces sparks my interest. As the JSF Framework RichFaces from JBoss supports much more components as other frameworks and also really cool Ajax features, I started to build my first jee web module using RichFaces.
First I read this quick guide which shows how to build a JEE Webmodul using RichFaces in general. But as I planed to integrate my first example into an existing JEE project build on maven I search a lot to find out how to setup a Maven Web module with RichFaces Support.
Here is my personal quick guide to setup a maven web app with RichFaces:
1.) Add the JBoss Maven repository to your Maven Installation:
first you need to add the following repository description into your setup.xml file located in your Maven root directory:
<!-- JBoss RichFaces Repository -->
<name>Jboss Repository for Maven</name>
So later maven will be able to download the necessary components. (I don't know why this framework is not included into the standard maven repository)
2.) Add the RichFaces Dependencies
the next (and final) step is to add the RichFaces Dependencies into your Maven Web Module (I assume that you know how to build a web module with maven).
To find out the right dependencies takes me the most time as I did not found an example on the JBoss RichFaces Homepage. But finally I found these dependency configuration which works fine:
So add these three dependencies into your pom.xml.
That's really all!
I completed my first integration test with the Simple Ajax Echo example at it works perfect !
Now I begin to love RichFaces :-)