MyFaces

The free JavaServer(tm) Faces implementation
Download
Documentation
Site Info
History of: GettingStarted

Comparing versions

Actual_version Version:60

Getting started

What you need for the Examples Application

Installing and Running the Examples

  • Unpack the MyFaces examples archive myfaces-1.0.7-examples.tgz to a directory of your choice.
  • Remove any previous MyFaces webapps from your Tomcat installation and clean up your Tomcat work dir. Also make sure that there is no jsf-api.jar or jsf-impl.jar (i.e. Suns API implementation) in the classpath or in one of Tomcat's lib directories (common/lib or shared/lib).
  • Copy the file myfaces-examples.war to the webapps dir of your Tomcat installation directory - and check once more that there is no old myfaces-examples directory there ;-)
  • (Re)start Tomcat
  • Start your browser and enjoy it at http://localhost:8080/myfaces-examples.

Installing and Running Sun JSF-RI Samples with MyFaces

see detailed description

Using MyFaces in your own web application

  • Look at the compatibility list to find out if your servlet container is supported.
  • Download the latest MyFaces binary release (myfaces-1.0.7.tgz).
  • Copy the jar files myfaces-jsf-api.jar, myfaces.jar, jstl.jar, jakarta-oro.jar, commons-codec-1.2.jar, commons-el.jar, commons-fileupload-1.0.jar, commons-logging.jar and commons-validator.jar from the lib directory to the WEB-INF/lib dir of your Webapplication.
  • If you are using a JSP 1.2 container like Tomcat 4 you must also copy the file jsp-2.0.jar to your WEB-INF/lib dir.
  • 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).
  • Configure your webapp's web.xml file (see conf/web.xml for example and documentation)
  • Add the following lines to your JSPs:
       <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
       <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
  • To be able to use the MyFaces extensions add the following line to your JSPs:
       <%@ taglib uri="http://myfaces.sourceforge.net/tld/myfaces_ext_0_9.tld" prefix="x"%>

Tutorials for getting started with MyFaces

Getting started

What you need for the Examples Application

Installing and Running the Examples

  • Unpack the MyFaces examples archive myfaces-1.0.7-examples.tgz to a directory of your choice.
  • Remove any previous MyFaces webapps from your Tomcat installation and clean up your Tomcat work dir. Also make sure that there is no jsf-api.jar or jsf-impl.jar (i.e. Suns API implementation) in the classpath or in one of Tomcat's lib directories (common/lib or shared/lib).
  • Copy the file myfaces-examples.war to the webapps dir of your Tomcat installation directory - and check once more that there is no old myfaces-examples directory there ;-)
  • (Re)start Tomcat
  • Start your browser and enjoy it at http://localhost:8080/myfaces-examples.

Installing and Running Sun JSF-RI Samples with MyFaces

see detailed description

Using MyFaces in your own web application

  • Look at the compatibility list to find out if your servlet container is supported.
  • Download the latest MyFaces binary release (myfaces-1.0.7.tgz).
  • Copy the jar files myfaces-jsf-api.jar, myfaces.jar, jstl.jar, jakarta-oro.jar, commons-codec-1.2.jar, commons-el.jar, commons-fileupload-1.0.jar, commons-logging.jar and commons-validator.jar from the lib directory to the WEB-INF/lib dir of your Webapplication.
  • If you are using a JSP 1.2 container like Tomcat 4 you must also copy the file jsp-2.0.jar to your WEB-INF/lib dir.
  • 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).
  • Configure your webapp's web.xml file (see conf/web.xml for example and documentation)
  • Add the following lines to your JSPs:
       <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
       <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
  • To be able to use the MyFaces extensions add the following line to your JSPs:
       <%@ taglib uri="http://myfaces.sourceforge.net/tld/myfaces_ext_0_9.tld" prefix="x"%>



Date Ver User Ip Comment Action
 Tue 10 of May, 2005 [14:07 UTC]   60   tinytoony   143.245.83.70      current 
 Mon 09 of Aug, 2004 [12:42 UTC]   60   manolito   143.245.83.48      v  c  d  s 
 Tue 01 of Jun, 2004 [19:58 UTC]   59   mwessendorf   217.83.93.175      v  c  d  s 
 Sat 17 of Apr, 2004 [17:57 UTC]   58   manolito   62.218.162.38      v  c  d  s 
 Fri 19 of Mar, 2004 [10:40 UTC]   48   manolito   143.245.83.48      v  c  d  s 
 Wed 10 of Mar, 2004 [07:54 UTC]   45   manolito   143.245.83.48      v  c  d  s 
Search
in:
RSS Feeds
Login
user:
pass:
Remember me
I forgot my pass