Showing posts from May, 2012

How to Perform Validation through Method in Oracle ADF

In this post we will perform validation through Method in Oracle ADF and for this purpose will continue the previous post example.

In this example we will perform validation on Employee's First Name field and we will restrict the data entry operator to do not leave the first name field empty.
First we will generate and configure Java implementation class for Employee Entity Object. Double click on Employee Entity from model.eo package and Open Java tab. From the Java Classes click on yellow pencil button. From the newly opened window click to generate entity object class and also click to include Accessors. 

Perform Field Level Validation in Oracle ADF

We can also define the field level validation at Entity Object Level. The purpose of validation is to validate data before sent to the database. Declarative validation involves following steps:-

1)Add validation
2)Define Validation
3)Set Error Message

In this post we will continue the previous post example and perform validation on Salary Field.

Open the employee entity from model.eo package. From attribute select Salary field, open the Validation Rule tab and click plus sign to Add the Validation.