Overview
Other MyFaces Extensions
- ExtVal
- Ext-Script
- [Orchestra]
- [Portlet Bridge]
Community
Development
Sponsorship
Your browser does not support iframes
MyFaces CODI consists of the following modules:
Required modules:
Optional modules:
It's quite easy to add CODI to your project. Just add the core as well as the module/s of your choice to the pom.xml
of your project.
If you are using CODI in a JEE6 environment, you don't need to configure a CDI implementation explicitly because it's shipped with the container. For some JEE6 application servers it's suggested to use the all-in-one dist package instead of the fine grained modules (due to server related issues).
Don't forget to setup the CDI implementation of your choice. If you would like to use CODI in combination with OpenWebBeans, you can also use the archetype provided by MyFaces.
mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
<dependency> <groupId>org.apache.myfaces.extensions.cdi.core</groupId> <artifactId>myfaces-extcdi-core-api</artifactId> <version>${codi.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.myfaces.extensions.cdi.core</groupId> <artifactId>myfaces-extcdi-core-impl</artifactId> <version>${codi.version}</version> <scope>runtime</scope> </dependency>
<dependency> <groupId>org.apache.myfaces.extensions.cdi.modules</groupId> <artifactId>myfaces-extcdi-jsf12-module-api</artifactId> <version>${codi.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.myfaces.extensions.cdi.modules</groupId> <artifactId>myfaces-extcdi-jsf12-module-impl</artifactId> <version>${codi.version}</version> <scope>runtime</scope> </dependency>
<dependency> <groupId>org.apache.myfaces.extensions.cdi.modules</groupId> <artifactId>myfaces-extcdi-jsf20-module-api</artifactId> <version>${codi.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.myfaces.extensions.cdi.modules</groupId> <artifactId>myfaces-extcdi-jsf20-module-impl</artifactId> <version>${codi.version}</version> <scope>runtime</scope> </dependency>
<dependency> <groupId>org.apache.myfaces.extensions.cdi.modules</groupId> <artifactId>myfaces-extcdi-bv1-module-api</artifactId> <version>${codi.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.myfaces.extensions.cdi.modules</groupId> <artifactId>myfaces-extcdi-bv1-module-impl</artifactId> <version>${codi.version}</version> <scope>runtime</scope> </dependency>
<dependency> <groupId>org.apache.myfaces.extensions.cdi.modules</groupId> <artifactId>myfaces-extcdi-scripting-module-api</artifactId> <version>${codi.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.myfaces.extensions.cdi.modules</groupId> <artifactId>myfaces-extcdi-scripting-module-impl</artifactId> <version>${codi.version}</version> <scope>runtime</scope> </dependency>
<dependency> <groupId>org.apache.myfaces.extensions.cdi.modules</groupId> <artifactId>myfaces-extcdi-message-module-api</artifactId> <version>${codi.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.myfaces.extensions.cdi.modules</groupId> <artifactId>myfaces-extcdi-message-module-impl</artifactId> <version>${codi.version}</version> <scope>runtime</scope> </dependency>
Hint
Replace the placeholders for the version with the version of your choice or use:
<properties> <codi.version>1.0.0-SNAPSHOT</codi.version> </properties>
Hint
If you would like to test CODI or you need all modules provided by CODI, you can use an all-in-one JAR file.
<dependency> <groupId>org.apache.myfaces.extensions.cdi</groupId> <artifactId>myfaces-extcdi-dist-jsf12</artifactId> <version>${codi.version}</version> <scope>compile</scope> </dependency>
or
<dependency> <groupId>org.apache.myfaces.extensions.cdi</groupId> <artifactId>myfaces-extcdi-dist-jsf20</artifactId> <version>${codi.version}</version> <scope>compile</scope> </dependency>