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

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.