123
chenjingwu
2024-04-15 43c7a9f8b03866ec59636450de9c3b8d6e27114b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<apex:page controller="PageMessagesFormController">
    <apex:form >
        <apex:pageMessages />
        <apex:pageBlock title="Error Handling" mode="edit">
            <apex:pageBlockSection >
                <apex:inputText label="Enter City Name: " value="{!cityName}" />
            </apex:pageBlockSection>
            <apex:pageBlockButtons >
                <apex:commandButton action="{!cancel}" value="Cancel" />
                <apex:commandButton action="{!createCity}" value="Save" />
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>