Using Refresh Container component in MAF

The new version 2.2 of Oracle MAF was release, and now we have a new useful component, called Refresh Container, to use when we need to refresh a list view component.

In this post, I will show how you can use the Refresh Container component to update a list of employees instead of use a button component.
As a starting point, I will use the application of this post: REST/JSON in MAF.
Download the sample application: MAFRESJSONApp_v2.zip.

Open the empList page.
Go to Struture panel and right-click the List View component.
Select the Surround With option, and then the Refresh Container option.

using-refresh-container-component-in-maf1

Set the properties: action=”goFindAll”, pullText=”Pull down to refresh” and busyText=”Refreshing…”.

using-refresh-container-component-in-maf2

Remove the Refresh button.

using-refresh-container-component-in-maf3

Deploy the application and enjoy!

using-refresh-container-component-in-maf4

Update or insert a new employee row into the Employees table.

using-refresh-container-component-in-maf5

Pull down the list of employees, and …

using-refresh-container-component-in-maf6

The list of employees was refresh.

using-refresh-container-component-in-maf7

Waslley Souza

Author: Waslley Souza

Consultor Oracle com foco em tecnologias Oracle Fusion Middleware e SOA. Certificado Oracle WebCenter Portal, Oracle ADF e Java.

Leave a Reply

Your email address will not be published. Required fields are marked *