ADF support Regular Expression to validate user input. It’s very helpful to validate field like phone number, email id and reduce lots of java code. ADF framework provides some predefined expression, but you can write any custom expression according your need. In this post I will add validation rule on Email attribute of Employees table.
- Select Email Attribute in Employees entity and go to validation tab.
- Then click on “Green Plus” icon to add new validation rule on attribute.
- On Dialog window select
- Type=Regular Expression
- Predefined Expression=Email Address
As you can see in following image regular expression automatically come for Email or you can defined your own expression.
- Then go to Failure handling tab and set message for error.