Using an af:iterator to add pagination support to a collection
A collection in an ADF Fusion web application, when dropped from the Data Controls window to a JSF page as an ADF Table, may be iterated through using the af:table
ADF Faces component. Alternatively, when dropped as an ADF Form, it may be iterated a row at a time using the accompanying form buttons which can optionally be created by JDeveloper.
In this recipe, we will show how to add pagination support to a collection by utilizing the iterator (af:iterator) ADF Faces component along with the necessary scrolling support provided by a managed bean.
Getting ready
You will need to create a skeleton Fusion Web Application (ADF) workspace before you proceed with this recipe. For this, we will use the MainApplication
workspace that was developed in Breaking up the application in multiple workspaces, Chapter 1,Pre-requisites to Success: ADF Project Setup and Foundations.
The recipe also uses the HRComponents
workspace, which was created...