Overview
Other MyFaces Extensions
- CODI
- Ext-Script
- [Orchestra]
- [Portlet Bridge]
MyFaces ExtVal consists of the following modules:
Required modules:
Optional modules:
It's quite easy to add ExtVal to your project. Just add the core as well as the module/s of your choice to the pom.xml
of your project.
<dependency> <groupId>org.apache.myfaces.extensions.validator</groupId> <artifactId>myfaces-extval-core</artifactId> <version>${extval.version}</version> <scope>compile</scope> </dependency>
<dependency> <groupId>org.apache.myfaces.extensions.validator.validation-modules</groupId> <artifactId>myfaces-extval-property-validation</artifactId> <version>${extval.version}</version> <scope>compile</scope> </dependency>
<dependency> <groupId>org.apache.myfaces.extensions.validator.validation-modules</groupId> <artifactId>myfaces-extval-bean-validation</artifactId> <version>${extval.version}</version> <scope>compile</scope> </dependency>
These modules are only needed for special component libs. Just add them if you component library doesn't work with ExtVal out-of-the-box. Such libs are using special tricks. You can fix it with using the correct component support module.
<dependency> <groupId>org.apache.myfaces.extensions.validator.component-support-modules</groupId> <artifactId>myfaces-extval-trinidad-support</artifactId> <version>${extval.version}</version> <scope>compile</scope> </dependency>
<dependency> <groupId>org.apache.myfaces.extensions.validator.component-support-modules</groupId> <artifactId>myfaces-extval-generic-support</artifactId> <version>${extval.version}</version> <scope>compile</scope> </dependency>
Hint
Replace the placeholders for the version with the version of your choice or use:
<properties> <extval.version>2.0.4</extval.version> </properties>
To use ExtVal without Maven, you have to manually download the ExtVal modules and add them to your classpath.
You can download the latest release at: http://myfaces.apache.org/extensions/validator/download.html. The release can be downloaded as .zip or .tar.gz file and contains all ExtVal modules mentioned on this page.
Previous releases are available at: dist/binaries and dist/source. In case of previous releases, all modules must be downloaded separately.
Just copy the JAR files of the modules that you're going to use to the place where you keep your libraries and add them to your classpath. This process differs, depending on the build tools and/or IDE you're using. No additional configuration is needed to start using ExtVal.