Hi,
I want to have a text field that can validate multi values, like below:
FormComponent fc;
fc = new RequiredTextField("name");
fc.add(StringValidator.minimumLength(8));
fc.add(new PatternValidator("cab\\d{2}"));
fc.add(new PatternValidator("[aAxX]\\d{7}"));
I hope the value of this text field is valid when I type cab12 or a1234567.
But only first Pattern Validator works.
It means that if I input a1234567, validator says it's wrong.
If I input cab12, it's valid.
How can I archive the goal of multi validators in one text field?
Thanks!
--
View this message in context:
http://www.nabble.com/Multi-validator-in-one-input-field--tp17624619p17624619.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]