You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
drewbourne edited this page Sep 13, 2010
·
1 revision
MatcherValidator is an extension to mx.validators.Validator that allows any matcher to be used to validate a value.
<MatcherValidator
source="{ titleTextInput }"
property="text"
errorCode="error.title.leadingwhitespace"
errorMessage="Must contain the word 'the' and not start with space or tabs.">
<AllOf>
<Not>
<EmptyString />
</Not>
<ContainsString string="the" />
<MatchesPattern expression="^\s+" />
</AllOf>
</MatcherValidator>