0

Create JSF2 application with Eclipse Mars

This post demonstrates how to create a JSF2 application with Eclipse Mars.

1. Create a Dynamic Web Project

Choose File -> New -> Dynamic Web Project from the main menu.

jsf-mars-001

2. Describe your Project

For this post, the project is named Jsf2SampleDemo. You may define your own project name.

jsf-mars-002

Then, click Modify....

3. Configure

Choose JavaServer Faces v2.2 Project.

jsf-mars-003

Notice it selects appropriate Facets.

jsf-mars-004

Then click Ok.

4. Additional configuration

jsf-mars-005

Click Next.

jsf-mars-006

Click Next again.

jsf-mars-007

Click Next.

5. Download JSF Implementation Library

Once you reach this page, click the download icon just on the right-side part of the screen.

jsf-mars-008

The Download Library Dialog will display. Just click Next.

jsf-mars-009

Then, the Library License Dialog is displayed.

jsf-mars-010

Choose I accept the terms of this license and click Finish. It will start the download process.

jsf-mars-011

Download complete. Click Next.

jsf-mars-012

Completing the process.

jsf-mars-013

It then completes the process.

jsf-mars-014

Karl San Gabriel

Karl San Gabriel

Java and Enterprise Technologies Expert