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 ...

Get Oracle JDeveloper 11gR2 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.