O'Reilly logo

Visualforce Developer's Guide by W.A.Chamil Madusanka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Standard list controllers

The second controller type is the standard list controller which can be used for displaying or performing an action on a set of records (including related lists, list pages, and mass action pages). It allows us to filter records on a particular page. We can use standard list controllers for Account, Asset, Campaign, Case, Contact, Contract, Idea, Lead, Opportunity, Order, Product2, Solution, User, and all the custom objects.

How to use a standard list controller with Visualforce

Similar to the standard controller, we can specify the standardController attribute of the <apex:page> component. Additionally, we need to specify the recordSetVar attribute of the <apex:page> component.

Tip

The standardController attribute specifies ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required