Mise en place des bases d'un projet JSF 2 sur Eclipse.
JSF est un framework de développement d'application web.
Pré-requis :
-
Eclipse en version "Java EE Developers" http://www.eclipse.org/home/categories/index.php?category=ide
-
avoir un serveur configuré dans eclipse: Tomcat 7.0
-
avoir les librairies JSTL: jstl-api-1.2.jar et jstl-impl-1.2.jar
Création du projet:
|
Eclipse:
Créer un nouveau projet Web Dynamique "JSF2-test01"
Sélectionner: Tomcat 7
JavaServer Faces v2.0 Projet

Cochez Generate web.xml

Téléchargez la librairie Apache Myfaces JSF



Et importez les librairies JSTL par le bouton « Manage libraries »

On obtient le projet suivant:

Les bases du projet sont en place, passons à la suite : JSF 2 Les formulaires (en construction…)