-
Notifications
You must be signed in to change notification settings - Fork 27
Validators
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>