Visual force Page standard Controller code:
<apex:page standardController="Account">
<apex:commandButton action="{!Cancel}" value="Back"/>
<apex:commandButton action="{!Save}" value="Save" />
The above code is Standard Controller Code, which contains standard commandbutton action such as cancel and save
custom object:
<apex:page standardController="Visit__c">
<apex:commandButton action="{!Cancel}" value="Back"/>
<apex:commandButton action="{!SaveNavigate}" value="Save">
The above code contains save and Navigate Option,how they are adding functionality of action called {!SaveNavigate}
Manually in custom object.
StandardController
has the same methods, andsaveNavigate
is not one of them. The second<apex:page>
tag should have anextensions
attribute. Where are you getting these examples from?