Overview
Other MyFaces Extensions
- ExtVal
- Ext-Script
- [Orchestra]
- [Portlet Bridge]
Community
Development
Sponsorship
Your browser does not support iframes
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
MyFaces CODI consists of the following modules:
Required modules:
Optional modules:
Optional configuration modules:
Optinal Java-EE5 Support Modules
The following Modules are NOT needed with Java-EE6+ application servers.
Optional All-in-one bundles (alternative to the separated modules above)
Scroll down to see how to add those modules to your project.
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.
Hint
In the listings below replace the placeholders for the version with the version of your choice or use:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<properties> <codi.version>1.0.3</codi.version> </properties> |
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 (esp. Glassfish v3) it's suggested to use the all-in-one dist package instead of the fine grained modules (due to server related issues).
DonJEE5 application servers as well as pure servlet containers like Apache Tomcat don't provide a CDI implementation out-of-the-box. So 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.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<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:
Code Block | |
---|---|
xml | xml |
title | Optional properties |
<properties>
<codi.version>1.0.0-SNAPSHOT</codi.version>
</properties>
|
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<dependency> <groupId>org.apache.myfaces.extensions.cdi<cdi.bundles</groupId> <artifactId>myfaces-extcdi-distbundle-jsf12</artifactId> <version>${codi.version}</version> <scope>compile</scope> </dependency> |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<dependency> <groupId>org.apache.myfaces.extensions.cdi.cdi<bundles</groupId> <artifactId>myfaces-extcdi-distbundle-jsf20</artifactId> <version>${codi.version}</version> <scope>compile</scope> </dependency> |
...
Entries for CODI v1+v0.9.x (deprecated)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<dependency> <groupId>org.apache.myfaces.extensions.cdi.bundles<cdi</groupId> <artifactId>myfaces-extcdi-bundledist-jsf12</artifactId> <version>${codi.version}<<version>0.9.5</version> <scope>compile</scope> </dependency> |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<dependency> <groupId>org.apache.myfaces.extensions.cdi.bundles<cdi</groupId> <artifactId>myfaces-extcdi-bundledist-jsf20</artifactId> <version>${codi.version}<<version>0.9.5</version> <scope>compile</scope> </dependency> |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<dependency> <groupId>org.apache.myfaces.extensions.cdi.bundles</groupId> <artifactId>myfaces-extcdi-bundle-alternative-configuration</artifactId> <version>${codi.version}</version> <scope>compile</scope> </dependency> |
You can manually download all JARs described above from the maven repository or you use one of the available download mirrors for binary and source artifacts which bundle all JARs.