Differences between revisions 6 and 7
Revision 6 as of 2006-11-09 20:35:41
Size: 3075
Editor: StanSilvert
Comment:
Revision 7 as of 2009-09-20 23:00:38
Size: 3099
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
See also [http://myfaces.apache.org/gettingstarted.html Getting started with Apache MyFaces] and ["Using_MyFaces_in_a_Project_built_with_Maven"] See also [[http://myfaces.apache.org/gettingstarted.html|Getting started with Apache MyFaces]] and [[Using_MyFaces_in_a_Project_built_with_Maven]]
Line 10: Line 10:
|| [http://jakarta.apache.org/commons/beanutils/ Jakarta Commons BeanUtils] || 1.6.1 ||||
|| [http://jakarta.apache.org/commons/codec/ Jakarta Commons Codec] || 1.2 ||||
|| [http://jakarta.apache.org/commons/collections/ Jakarta Commons Collections] || 3.1 ||||
|| [http://jakarta.apache.org/commons/digester/ Jakarta Commons Digester] || 1.5 ||||
|| [http://jakarta.apache.org/commons/el/ Jakarta Commons EL] || 1.0 ||||
|| [http://jakarta.apache.org/commons/fileupload/ Jakarta Commons FileUpload] || 1.0 || Required only if you are uploading files ||
|| [http://jakarta.apache.org/commons/logging/ Jakarta Commons Logging] || 1.0.4 ||||
|| [http://jakarta.apache.org/commons/validator/ Jakarta Commons Validator] || 1.2.0-dev || Which snapshot is used for testing??? ||
|| [http://jakarta.apache.org/oro/index.html Jakarta ORO] || ??? || You can use the one from the Myfaces 1.0.9 binary distribution in the lib-directory ||
|| [http://logging.apache.org/log4j/docs/ log4J] || 1.2.12 || Required only if you have commons-logging configured to use log4j. Version 1.2.8 might do as well ||
|| [[http://jakarta.apache.org/commons/beanutils/|Jakarta Commons BeanUtils]] || 1.6.1 ||||
|| [[http://jakarta.apache.org/commons/codec/|Jakarta Commons Codec]] || 1.2 ||||
|| [[http://jakarta.apache.org/commons/collections/|Jakarta Commons Collections]] || 3.1 ||||
|| [[http://jakarta.apache.org/commons/digester/|Jakarta Commons Digester]] || 1.5 ||||
|| [[http://jakarta.apache.org/commons/el/|Jakarta Commons EL]] || 1.0 ||||
|| [[http://jakarta.apache.org/commons/fileupload/|Jakarta Commons FileUpload]] || 1.0 || Required only if you are uploading files ||
|| [[http://jakarta.apache.org/commons/logging/|Jakarta Commons Logging]] || 1.0.4 ||||
|| [[http://jakarta.apache.org/commons/validator/|Jakarta Commons Validator]] || 1.2.0-dev || Which snapshot is used for testing??? ||
|| [[http://jakarta.apache.org/oro/index.html|Jakarta ORO]] || ??? || You can use the one from the Myfaces 1.0.9 binary distribution in the lib-directory ||
|| [[http://logging.apache.org/log4j/docs/|log4J]] || 1.2.12 || Required only if you have commons-logging configured to use log4j. Version 1.2.8 might do as well ||
Line 23: Line 23:
|| [http://struts.apache.org/ Apache Struts] struts.jar || 1.2.7 || Required only if you are doing tiles work, will change to the tile.jar file once tiles is pulled from struts. || || [[http://struts.apache.org/|Apache Struts]] struts.jar || 1.2.7 || Required only if you are doing tiles work, will change to the tile.jar file once tiles is pulled from struts. ||

Library dependencies and versions

To use Apache MyFaces in your own webapplication you need to add several third party libraries. This page gives an overview over the necessary libraries and their version for the current stable release (which is 1.1.0 at the time of this writing).

See also Getting started with Apache MyFaces and Using_MyFaces_in_a_Project_built_with_Maven

Required third party libraries

MyFaces version 1.1.0:

Library

Version

Notes

Jakarta Commons BeanUtils

1.6.1

Jakarta Commons Codec

1.2

Jakarta Commons Collections

3.1

Jakarta Commons Digester

1.5

Jakarta Commons EL

1.0

Jakarta Commons FileUpload

1.0

Required only if you are uploading files

Jakarta Commons Logging

1.0.4

Jakarta Commons Validator

1.2.0-dev

Which snapshot is used for testing???

Jakarta ORO

???

You can use the one from the Myfaces 1.0.9 binary distribution in the lib-directory

log4J

1.2.12

Required only if you have commons-logging configured to use log4j. Version 1.2.8 might do as well

myfaces-impl.jar

1.1.0

Alternatively use myfaces-all.jar

myfaces-api.jar

1.1.0

Alternatively use myfaces-all.jar

tomahawk.jar

1.1.0

If you want to use MyFaces extensions. Alternatively use myfaces-all.jar

Apache Struts struts.jar

1.2.7

Required only if you are doing tiles work, will change to the tile.jar file once tiles is pulled from struts.

portlet-api.jar

implementation specific

Only needed for compile time. Portal implementation provides this API at run time.

Installation

  • Copy the libraries (jar-files) into the WEB-INF/lib directory of your .war file.
  • 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).

Alternatively you can add the libraries to the classpath of your Servlet container (check the documentation of your container).

Typically the first approach is recommended, as it allows you (a) to have different versions of libraries in different webapplication within the same container, and (b) to distribute your application as a whole without others having to install the libraies into their Servlet container.

Library_dependencies (last edited 2009-09-20 23:00:38 by localhost)