123
chenjingwu
2024-04-11 673fd6648381bb301577ebde009eaf731138c197
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<apex:page standardController="Account"
    recordSetVar="Accounts"
    extensions="PaginatedListController"
>
    <apex:form >
        <apex:pageblock >
            <apex:pageMessages />
            <apex:pageBlockTable value="{!accounts}" var="account">
                <apex:column value="{!account.Name}" />
                <apex:column value="{!account.Type}" />
                <apex:column value="{!account.Phone}" />
                <apex:column value="{!account.NumberOfEmployees}" />
            </apex:pageBlockTable>
            <apex:panelGrid columns="4">
                <apex:commandLink action="{!first}">First</apex:commandLink>
                <apex:commandLink action="{!previous}"
                    >Previous</apex:commandLink>
                <apex:commandLink action="{!next}">Next</apex:commandLink>
                <apex:commandLink action="{!last}">Last</apex:commandLink>
            </apex:panelGrid>
        </apex:pageblock>
    </apex:form>
</apex:page>