- January 17, 2020 at 3:40 pm #67003Deepak #4
How many custom controllers can we have per Visualforce page in Salesforce?
How many custom controllers can we have per VisualForce page?January 18, 2020 at 8:12 am #67008Manish #18
We have three types of controllers that we use on Visualforce Page,
- Standard Controller : Standard controllers will have same logic and functionality used standard visualforce pages. No Apex code is required in Standard Controllers
Syntax: <apex:page standardController=”Account”>
2. Custom Controller : When a developer needs different logic and functionality he/she may write their own Apex controller class. Custom controller’s will not provide default functions like standard controllers.
Syntax : <apex:page controller=”ClassName”>
3. Extensions : If we want to use both custom controller functionality and standard controller functionality we use extension controllers. Extension Controllers begins with Standard controller and extended or overridden with custom controller with custom apex code.
Syntax: <apex:page standardController=”Äccount” extensions=”ClassName, ClassName2″>January 20, 2020 at 2:14 pm #67045
Please Register to reply to this topic. /