apex:listViews

The list view picklist for an object, including its associated list of records for the currently selected view. In standard Salesforce applications this component is displayed on the main tab for a particular object.

See also: <apex:enhancedList>.

Example 

1<apex:page showHeader="true" tabstyle="Case">
2    <apex:ListViews type="Case" />
3    <apex:ListViews type="MyCustomObject__c" />
4</apex:page>

Attributes 

Attribute NameAttribute TypeDescriptionRequired?API VersionAccess
idStringAn identifier that allows the listViews component to be referenced by other components in the page. 10.0global
renderedBooleanA Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. 10.0global
typeStringThe Salesforce object for which list views are displayed, for example, type=“Account” or type=“My_Custom_Object__c”.Yes10.0global

Facets 

Facet NameDescriptionAPI Version
bodyThe components that should appear in the body of the displayed list of records. Note that the order in which a body facet appears in a listViews component does not matter, because any facet with name=“body” will control the appearance of the body of the displayed list. Also note that if you define a body facet, it replaces the list of records that would normally display as part of the list view.10.0
footerThe components that should appear in the footer of the displayed list of records. Note that the order in which a footer facet appears in the body of a listViews component does not matter, because any facet with name=“footer” will control the appearance of the bottom of the displayed list.10.0
headerThe components that should appear in the header of the displayed list of records. Note that the order in which a header facet appears in the body of a listViews component does not matter, because any facet with name=“header” will control the appearance of the top of the displayed list.10.0

See Also