zz
2023-05-16 941f4f0bd4f11c186f5dbccc581ffaece6d7185c
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>