You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

ExtVal Module Overview

MyFaces ExtVal consists of the following modules:

Required modules:

  • Core

Optional modules:

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

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>
  • No labels