Hi,
you have to set a Validator in your Component (and maybe after this,
set the strict validation mode, depending on your requirements).

As a sample, try lo look at TextInputValidatorTest (under the tests subproject):
in TextInput textinputDateRegex
you then set
        // validate using a date regex.
        textinputDateRegex.setText("2009-09-01");
        textinputDateRegex.setValidator(new RegexTextValidator(
            "(19|20)\\d\\d[- /.](0[1-9]|1[012])[-/.](0[1-9]|[12][0-9]|3[01])"));

or you can implement your own Validators.


Bye

Reply via email to