Note: The template is based on JSF RI 1.0 Final Release. If you still use JSF RI 1.0beta read the post below.
===
This template can be used as a good starting point to play with JSF under Eclipse.
Download: jsfKS.zip - JSF Application Template for Eclipse (1.7Mb)
It's a ready-to-deploy Eclipse project containing a simple "Hello, World"-style application.
How to import it:
1. Download and unzip the archive under your Eclipse workspace directory. (The files should appear under ...workspace/jsfKS.)
3. Run Eclipse.
4. Select File->Import->Existing Project into Workspace.
5. Select jsfKS for "Project contents" and click Finish.
6. Select the jsfKS project and build it (not required as a step if you set automatic rebuild on modification in your Eclipse Preferences).
How to deploy it:
The jsfKS project contains a folder 'ant' with a build.xml script in it.
1. In this script, set the deploy.dir property value to the folder name you want to deploy the WAR file in.
2. Run Ant on the build.xml script using the deploy target to deploy.
Special for Tomcat - Fast Deployment (Null-Deployment)
Add the following line into conf/server.xml file:
<Context debug="0"
docBase="Path_to_WebContent"
path="/jsfKS" reloadable="true"/>
where Path_to_WebContent is a path to ...workspace/jsfKS/WebContent
Null-deployment allows you to run an application after any changes without an explicit deployment procedure.
Requirements:
JDK 1.4
Tomcat 5.0 (if any)
Eclipse 2.1.* (WebSpere Studio 5.1 is OK), Eclipse 3.0

