Visualforce page that shows Contact details using an Extension controller
Create a Visualforce page that shows Contact details using an Extension controller Extension Controller: use to build custom functionalities that are not available at Standard controller. We can create more than one extension controller at a visualforce page. Visualforce Page: <apex:page standardController="Contact" extensions="contactExtension"> <apex:form> <apex:inputField value="{!contact.FirstName}"/> <p/> <apex:inputField value="{!contact.LastName}"/> <p/> <apex:commandButton value="Save" action="{!save}"/> </apex:form> </apex:page> Extension Controller: public class contactExtension { private final Contact cons; // The extension constructor initializes the private member public contactExtension (ApexPages.StandardController stdController) { this.cons = (Contact)stdController.getRecord...