An Introduction to JavaServer Faces
Plus Apache MyFaces Extensions
This tutorial is derived from
Marty Hall's world-renowned live JSF training course.
Note that the course (and this tutorial) now covers Apache MyFaces 1.1.5.
The course is usually taught on-site at customer locations, but
servlet, JSP,
Ajax, Jakarta Struts, and JSF training courses
at public venues are periodically scheduled for people with too few developers
for an onsite course. For descriptions of the various other courses that are
available, please see the training course page. To inquire about a customized training course at your location, please contact Marty at hall@coreservlets.com.
Courses on servlets, JSP, Ajax, Struts, Hibernate, Java 5, Java 6, and Ruby/Rails also available.
If you find these free tutorials helpful, we would appreciate it if you would
link to us.
The PDF files in this tutorial contain the complete text of the original
PowerPoint files, so if your goal is learning Ajax, just stick
with this tutorial. However, as a service to instructors teaching
full-semester courses at accredited universities, coreservlets.com
will release the original PowerPoint files for free. Please
see the instructor materials page
for details.
This section provides a quick review of the server-side programming
topics that will be used throughout this tutorial. There are no
Ajax-specific topics in this first section. For more details on
server-side programming, see
the servlet and JSP tutorials.
Comparing JSF to standard servlet/JSP technology (Pros/Cons)
Comparing JSF to Apache Struts (Pros/Cons)
Setting Up JSF
Downloading and configuring JSF
Apache MyFaces
Sun Reference Implementation
Testing JSF
Setting up JSF applications
Accessing JSF documentation
Generic
Specific to Apache MyFaces
Source Code:
jsf-blank-myfaces.zip
Blank Web app to use as a starting point for JSF applications.
Apache MyFaces version, bundled as
an Eclipse project
Has all necessary JAR files in WEB-INF/lib,
all required settings in WEB-INF/web.xml, and
a blank WEB-INF/faces-config.xml file.
myfaces-components.zip
Web application used for the examples in this section.
This is the complete version, including all JAR files and web.xml
settings. Specific to Apache MyFaces. If you want to start
with a blank Web app and add in MyFaces extended components (Tomahawk),
be sure to start with the full (not minimal)
version of the Apache MyFaces version of
jsf-blank.
e-boats.zip
First Web application used for the examples in this section.
This is the complete version, including all JAR files and web.xml
settings. The deployed JAR files are for Apache MyFaces 1.1,
but the basic code can also run in the Sun Reference
Implementation if you include struts.jar.
e-boats2.zip
Second Web application used for the examples in this section.
This is the complete version, including all JAR files and web.xml
settings. Specific to Apache MyFaces.
Topics:
Tiles motivations
Setting up JSF (any implementation) for simple Tiles
Onsite JSF Training Courses
Personally developed and
taught by the author of the best-selling Sun Press books
Core Servlets and JavaServer Pages, More Servlets and JavaServer Pages,
Core Web Programming, and this JavaServer Faces tutorial.