Salesforce Dictionary - Free Salesforce GlossarySalesforce Dictionary
DictionaryVVisualforce Controller
DevelopmentAdvanced

Visualforce Controller

In Salesforce Visualforce development, an Apex class that provides the data and handles user actions for a Visualforce page, available as standard controllers (auto-generated for objects) or custom controllers written in Apex.

§ 01

Definition

In Salesforce Visualforce development, an Apex class that provides the data and handles user actions for a Visualforce page, available as standard controllers (auto-generated for objects) or custom controllers written in Apex.

§ 02

In plain English

👋 Study buddy

A Visualforce Controller is an Apex class that provides data and handles user actions for a Visualforce page. You can use standard controllers (automatic CRUD for one object), custom controllers (full custom logic), or controller extensions (adding to standard controllers).

§ 03

Worked example

scenario · real-world use

When a developer at Underwell Hospitality builds a custom Visualforce page for booking review, she has three options for the Visualforce Controller. A Standard Controller (controller="Booking__c") gives her free CRUD on a single record. A Custom Controller (a from-scratch Apex class) gives her full control over data and logic. A Controller Extension (extending the Standard Controller with a custom Apex class) gives her the standard CRUD plus added custom methods. She picks the Controller Extension - keeps Salesforce's record-retrieval and save-button behavior for free, adds her custom calculation logic. Controllers are the back-end half of every Visualforce page; the markup is the front-end.

§ 04

Why Visualforce Controller matters

In Salesforce Visualforce development, a Visualforce Controller is an Apex class that provides the data and handles user actions for a Visualforce page, available as standard controllers (automatic CRUD), custom controllers (full custom logic), or controller extensions (adding capabilities to standard controllers).

Controllers are the server-side logic behind Visualforce pages. Standard controllers handle basic CRUD automatically; custom controllers give full control over page behavior; extensions add custom functionality to standard controllers. Mature Visualforce development chooses the right controller type based on complexity needs.

§ 05

How organizations use Visualforce Controller

CodeBridge

Uses standard controllers for simple CRUD pages and custom controllers for complex logic.

TerraForm Tech

Extends standard controllers when additional logic is needed beyond basic CRUD.

Quantum Labs

Chooses controller type based on page complexity requirements.

§

Trust & references

Official documentation

Straight from the source - Salesforce's reference material on Visualforce Controller.

Was this entry helpful?
Help us write better definitions. Quick reactions or detailed edit suggestions.
§

🧠 Test your knowledge

Q1. What is a Visualforce Controller?

Q2. What types exist?

Q3. When use a standard controller?

§

Discussion

Loading…

Loading discussion…