Now that RichFaces 3.3.3 is out, plus JBoss Tools 3.1 was released in March, let me show you the easiest way to start with RichFaces and Tomcat 6. This doesn’t involve Maven. I’ll write a post about Maven and RichFaces some other time.
The following steps assume you have JBoss Tools 3.0 or 3.1 installed. Just in case you don’t have JBoss Tools installed, skip to section Installing JBoss Tools 3.1 at the end.
Getting RichFaces project
- Download RichFaces start project
- In Eclipse, select File/Import/General/Existing Project into Workspace
- Check Select archive file and click Browse…
- Find and select richfaces-start.zip
- Click Finish
- Once the project is imported, in Servers view, right-click Tomcat server and select Add and Remove…
- Move richfaces-start to the right side
- Start the server
- Right-click richfaces-start project and select Run As/Run nn Server
You should see a page like this:
The project even comes with a very short custom skin (laguna14). Look for the skin file in JavaSource folder. The application also uses a4j:insert tag and a4j implicit object.
Installing JBoss Tools 3.1
- Download and install Eclipse IDE for Java EE Developers 3.5.2
- In Eclipse, go to Help/Install New Software…
- Click Add
- For name, enter JBoss Tools 3.1
- For URL, enter http://download.jboss.org/jbosstools/updates/JBossTools-3.1.0.GA/
- Click OK
- Select the just added software link
- When a list of features appears, select Web and Java EE Development
- Click Finish. This will install JBoss Tools
- Launch Eclipse
- Add Tomcat 6 server (you can do it via Servers view)
- Go back to step #1 in Getting RichFaces project section
Leave a reply to Madhu Cancel reply