{scrollbar}

Step 1: Take a look at the examples

Your first step with Apache MyFaces should be to have a look at our examples application. In the following links (kindly hosted by Irian Solutions GmbH) you will find demo applications running with MyFaces.

You can deploy the examples application for yourself. All you need to do to get up and running is to follow the steps below!:

Step 2: Deploy MyFaces Tomahawk example application.

The most simple example you can try is the ones bundled with tomahawk, which at the begining of MyFaces project was the example application bundled with MyFaces Core.

What you need for the Examples Application

Installing and Running the Examples

Using MyFaces in your own web application

Suggested step:

There are three possible ways to start off with MyFaces, one (recomended) is to start using myfaces archetypes:

The second possibility is to start from the example-app:

The third possibility is to download the core implementation and/or tomahawk (dependent on if you want to use the RI and the tomahawk components, or only MyFaces), and start from there:

After you have downloaded the necessary packages and setup your project hierarchy, do this:

*Make sure that there is no jsf-api.jar (i.e. Suns API implementation) in the classpath or in one of your container's shared lib directories (e.g. common/lib or shared/lib for Tomcat).

xml <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

Using the MyFaces Tomahawk in your own web application

xml <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> <%@ taglib uri="http://myfaces.apache.org/wap" prefix="wap" %>

Tutorials for getting started with JSF

{scrollbar}