function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Puja Gupta 18Puja Gupta 18 

Need help with on equestion for correct answer

A Visualforce page is written with the following controller and extensions.
<apex:page standardController=”Account” extensions=”myExtension”>
<apex:inputField value =”(!account.name)”/><p/>
<apex:commandButton value =”Save” action=”(!save)”/>
</apex:page>
The extension class myExtension has a public save() method.
Which save method or methods will be used by the Visualforce page?

 

Ans: the save method from the standardController
both – myExtension first, then the standardControllermeet
the save method from the controller extension
both – the standardController first, then myExtension

please let me know correct answer.

meghana kollumeghana kollu
if both have the methods then extension controller method is called after that standard Controller method .
FARSANA PSFARSANA PS
Hi  Puja Gupta 18,
   The save method from the controller extension