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.
Set the properties: action=”goFindAll”, pullText=”Pull down to refresh” and busyText=”Refreshing…”.
Remove the Refresh button.
Deploy the application and enjoy!
Update or insert a new employee row into the Employees table.
Pull down the list of employees, and …
The list of employees was refresh.