Valid PDI Dumps shared by ExamDiscuss.com for Helping Passing PDI Exam! ExamDiscuss.com now offer the newest PDI exam dumps, the ExamDiscuss.com PDI exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com PDI dumps with Test Engine here:
How is a controller and extension specified for a custom object named "Notice" on a Visualforce page?
Correct Answer: D
In Visualforce, to specify a standard controller for a custom object, the syntax iscontroller="ObjectName__c". To add custom functionality, you can use anextensionsattribute to include a controller extension. Why not other options? A: The correct syntax iscontroller, notstandardController, for custom objects. BandC: These are syntactically incorrect. Visualforce Pages Documentation
Recent Comments (The most recent comments are at the top.)
Yassine - Oct 21, 2026
Answer: A. <apex:page standardController="Notice__c" extensions="myControllerExtension">
This is the same question you asked last Tuesday, with the same options. The page uses the custom object’s standard controller (standardController) and attaches the extension class with extensions. For a custom object, the standard controller name is its API name, ending in __c. Your option shows Notice_c, which is an OCR slip for Notice__c.
As we discussed after that question, “standard” in standardController means the controller is provided by Salesforce, not that the object has to be a standard object. Every custom object gets one automatically.
The other options don’t fit:
B. controllers="...": There is no controllers attribute on <apex:page>. C. apex:pege=Notice extends=...: This isn’t valid Visualforce syntax. The attribute is extensions, not extends, and attributes use name="value" pairs. D. controller="Notice__c": The controller attribute names a custom Apex controller class. Notice__c is an object, so it needs standardController....
Recent Comments (The most recent comments are at the top.)
Answer: A. <apex:page standardController="Notice__c" extensions="myControllerExtension">
This is the same question you asked last Tuesday, with the same options. The page uses the custom object’s standard controller (standardController) and attaches the extension class with extensions. For a custom object, the standard controller name is its API name, ending in __c. Your option shows Notice_c, which is an OCR slip for Notice__c.
xml
<apex:page standardController="Notice__c" extensions="myControllerExtension">
<apex:form>
<apex:inputField value="{!Notice__c.Name}"/>
<apex:commandButton action="{!save}" value="Save"/>
</apex:form>
</apex:page>
As we discussed after that question, “standard” in standardController means the controller is provided by Salesforce, not that the object has to be a standard object. Every custom object gets one automatically.
The other options don’t fit:
B. controllers="...": There is no controllers attribute on <apex:page>.
C. apex:pege=Notice extends=...: This isn’t valid Visualforce syntax. The attribute is extensions, not extends, and attributes use name="value" pairs.
D. controller="Notice__c": The controller attribute names a custom Apex controller class. Notice__c is an object, so it needs standardController....