Categories
Oracle

CRUD with Task Flow Template in ADF

When you are building an ADF Application, you should think about best practices to reuse some code and components. There is a very good post from Andrejus Baranovskis showing some Task Flow Template improvements. I will use it as my start point to create a CRUD Task Flow Template and my Task Flows will be based on this template. Download the sample application: ADFTFTemplateApp.zip. Create an ADF Fusion Web Application, and call it as ADFTFTemplateApp. Create the Business Component using […]
Categories
Oracle

ADF: Display Table as Paginated

A common requirement when building an application, is display tables as pagination. In this post I will show how to configure it. Download the sample application: ADFPaginatedTableApp.zip. By default, on a desktop device, tables render a scroll bar that allows the users to scroll through the rows of data. By default, on a tablet device, tables render a Show More link and a row counter at the bottom of the table. To display table as paginated, using ADF 12c (12.1.3), set the scrollPolicy attribute […]
Categories
Oracle

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 […]
Categories
Oracle

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. […]
Categories
Oracle

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 […]