ExtVal Module Overview

MyFaces ExtVal consists of the following modules:

Required modules:

Optional modules:

  • Validation-Modules
    • Property Validation
    • Bean Validation (JSR 303)
  • Component-Support
    • Trinidad-Support
    • Generic-Support

Maven Configuration - Getting Started

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.

ExtVal-Core Module (required)

ExtVal-Core module dependency
<dependency>
    <groupId>org.apache.myfaces.extensions.validator</groupId>
    <artifactId>myfaces-extval-core</artifactId>
    <version>${extval.version}</version>
    <scope>compile</scope>
</dependency>

ExtVal Validation Modules

Property Validation Module (optional)

ExtVal property validation module 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>

Bean Validation Module (optional)

ExtVal bean validation module 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>

ExtVal Component Support Modules (optional)

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.

Trinidad Support Module (optional)

ExtVal trinidad component support module dependency
<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>

Generic Support Module (optional)

ExtVal generic component support module 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:

Optional properties
<properties>
    <extval.version>2.0.4</extval.version>
</properties>

Use ExtVal without Maven

To use ExtVal without Maven, you have to manually download the ExtVal modules and add them to your classpath.

Manually downloading ExtVal

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.

Adding ExtVal to the classpath

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.

  • No labels