MyFaces

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

Version: 45

Getting started

What you need

Installing and Running the Examples

  • Unpack the MyFaces binaries archive myfaces-1.0.7.tgz to a directory of your choice.
  • Unpack the MyFaces examples archive myfaces-1.0.7-examples.tgz to the same directory.
  • Remove any previous MyFaces webapps from your Tomcat installation and clean up your Tomcat work dir.
  • Copy or move the directory web (in webapps/examples) to the webapps dir of your Tomcat installation directory and rename it to "myfaces".
  • Copy the file "jsf-api.jar" from the bundled "JavaServer Faces v1.0 Reference Implementation" archive jsf-1_0.zip to the WEB-INF/lib dir of your myfaces web application directory.
  • (Re)start Tomcat (there is a known log4j issue - see KnownIssues if you get errors!)
  • Start your browser and go to http://localhost:8080/myfaces.

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 lib/myfaces.jar file to the WEB-INF/lib dir of your Webapplication.
  • Copy the lib/cos.jar file to the WEB-INF/lib dir of your Webapplication.
  • Copy the file "jsf-api.jar" from the bundled "JavaServer Faces v1.0 Reference Implementation" archive jsf-1_0.zip to the WEB-INF/lib dir of your web application.
  • 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