This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • conditionalvisitor validator
Skip to end of metadata
Go to start of metadata

Description

The ConditionalVisitorFieldValidator will forward validation to the VisitorFieldValidator only if the expression will evaluate to true.

Parameters

  • expression - an OGNL expression which should evaluate to true to pass validation to the VisitorFieldValidator

Examples

Error rendering macro 'code': Invalid value specified for parameter 'java.lang.NullPointerException'
<field name="colleaguePosition">
    <field-validator type="conditionalvisitor">
        <param name="expression">reason == 'colleague' and colleaguePositionID == 'OTHER'</param>
        <message>You must select reason Colleague and position Other</message>
    </field-validator>
</field>
  • No labels