JavaServerTM Faces
Sample Applications

Specification Version: 1.2 Public Final Draft (PFD) Release
Reference Implementation (RI) Version: 1.2

This release of JavaServer Faces technology includes the following examples.  To build the examples see the building instructions on java.net.  To deploy the examples using glassfish, drop the example's WAR file into the <glassfish_home>/domains/domain1/autodeploy directory.  The descriptions of each example on this page include the URL to run the example.  The <hostname> part of the URL is the host where the server is running and <port> is the port for requests.

cardemo
An online car store, localized in American English, French, German and Latin American Spanish. This application is a proof-of-concept application, which demonstrates that JavaServer Faces technology can be used to build industrial-strength Web applications. It is not intended to be representative of best practices for Web application design. To run the sample, visit http://<hostname>:<port>/jsf-cardemo.
components
A set of custom components. This application shows how to build various custom components with JavaServer Faces technology. To run the sample, visit http://<hostname>:<port>/jsf-components.
guessNumber
Duke is thinking of a number. Can you guess it? This simple application shows a small set of standard components, page navigation, and validation. To run the sample, visit http://<hostname>:<port>/jsf-guessNumber.
renderkits
Demonstrates how to create and use a custom render kit and shows how easy it is to utilize multiple render kits in one application.
This example must be run with the Mozilla Deer Park Alpha 2 browser because this browser supports SVG.  Once you have launched this browser, run the sample by visiting http://<hostname>:<port>/jsf-renderkits.

webtier sample
A simple application demonstrating JavaServer Faces technology inter-operating JSTL, JSP. To run the sample, visit http://webtier-sample.