Validation for Email

I have attached sample demo project for EmailValidtor.

EmailValidator is not working. (79.1 KB)


It actually works.
Please see the documentation:

On the other hand, validation does not act immediately on data entry or focus loss, but rather when the component’s validate() method is invoked. It means that the component (and the entity attribute that it is linked to) may temporarily contain a value, which does not comply with the conditions of validation. It should not be a problem because the validated fields are typically located in edit screens, which automatically invoke validation for all their fields before commit. If the component is located not in an edit screen, its validate() method should be invoked explicitly in the screen controller.

So, in your sample you should call the validate() method explicitly.

For example i have two textfield and I have to Validate both field how can I do it