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
  • expression validator
Skip to end of metadata
Go to start of metadata

Description

A Non-Field Level validator that validates based on regular expression supplied.

Parameters

  • expression - the Ognl expression to be evaluated against the stack (Must evaluate to a Boolean)

Examples

Error rendering macro 'code': Invalid value specified for parameter 'java.lang.NullPointerException'
<validators>
      <validator type="expression">
         <param name="expression"> .... </param>
         <message>Failed to meet Ognl Expression  .... </message>
      </validator>
</validators>
  • No labels

4 Comments

  1. I think the description of validator has some error
    A Non-Field Level validator that validates based on regular expression supplied.
    I think change the description to
    A Non-Field Level validator that validates based on logic expression supplied.

    by yeeku.H.lee

  2. Maybe, unfortunately the example didn't help much. At least I didn't get it (sad)

  3. This page should explain whether the validation PASSES if the expression evaluates to true, or if the validation FAILS if the expression evaluates to true.

    1. Like all XW validators, this validation passes when the expression evaluates to true.