Another Salesforce blog!!!

Salesforce, Apex

Creating a Controller Extension

Creating a Controller Extension

<apex:page standardController="Speaker__c" extensions="SpeakerControllerExtension">
public with sharing class SpeakerControllerExtension {

    public Integer counter {get; set;}

    private final Speaker__c speaker;
    private ApexPages.StandardController stdController;

    public SpeakerControllerExtension(ApexPages.StandardController stdController) {
        this.speaker = (Speaker__c)stdController.getRecord();
        this.stdController = stdController;
        counter = 0;

    public void increment() {

Leave a Reply

Your email address will not be published. Required fields are marked *