ADF: Using the Target Tag

When you have a form with a required field, along with a Submit button and a Cancel button, when the Cancel button is clicked, all fields in the form are processed. Because the input text field is required, it will fail validation. To avoid the validation, probably you will configure the Cancel button to be immediate, and when the user clicks the Cancel button, all validation is skipped, any entered data is not updated to the model, and the user navigates as expected. It works, but what will you […]

ADF: Using Save Point Restore Finalizer

In the previous blog post, we have created an explicit save point in Oracle ADF 12c (12.1.3), but this time I will use the Save Point Restore Finalizer to execute the removeSavePoint method after the task flow’s state has been restored. This way, everytime I restore a save point, it will be removed from database. To do this, I will use the application of this post: ADF: Using Save Points (Explicit). Download the sample application: ADFSavePointApp_v2. Open the dept-flow task flow. […]

ADF: Using Save Points (Explicit)

You can configure a task flow to capture the state of an ADF application at a particular instance creating what is called a Save Point. This allows you to save application state when, for example, you are creating a new department, and the application state can be restored at a later point. An explicit save point requires an end user action before a bounded or unbounded task flow creates a save point. For example, an end user clicks a button that invokes a method call activity that, in turn, creates […]

Expose ADF BC as RESTful Web Service

Expose an ADF BC as SOAP Web Service is very simple. All you have to do is enable your Application Module to support Service Interface. But, how can I expose this same Application Module as RESTful Web Service? In this post, you will learn how to expose ADF BC as RESTful Web Service using JDeveloper 12c (12.1.3). Download the sample application: Create an ADF Fusion Web Application, and call it as ADFRESTApp. Create the Business Components, using the Employees table. This […]

Defining Cascading List of Values in ADF

When you have a field, and its value depends on the selection in another field, you may create a Cascading List of Values (LOV). A city field that depend on the selection in country field, is a good example of Cascading LOV. In this post, you will see how simple is, define a Cascading List of Values using ADF 12c. Download the sample application: First of all, we need to create a View Criteria to filter employees by department. In the Applications window, open the EmployeesView […]

Using Database Sequence in ADF

In some databases, like MySQL, you have the auto-increment option to generate an unique number when you add a new row. This is useful to create an unique number to act as a primary key. In Oracle Database, you don’t have auto-increment, but you have Sequences. A Sequence is an object that is used to generate a number sequence. There are three approaches to call Sequences in ADF: Override the Entity Object Row Base Class, use Groovy expression or use a DBSequence + Trigger. In this post […]

Testing with JUnit in ADF

When you are coding, certainly you will need to test the code to ensure that new features, bug fixes, or refactorings do not destabilize your application. JDeveloper provides the ability to generate JUnit test case, test fixture and test suite to test your ADF application. In this post, I will create a JUnit Test Case to test a method of my Application Module. Download the sample application: Installing JUnit In the main menu, choose Help and then Check For Updates. Select […]