• #43620
     Anjali #6
    Forcetalks

    Can we use standardController & controller attributes at a time?

    Can we use standardController & controller attributes at a time?

    #43806
    Forcetalks

    Hi,

    No, We cannot reference both attributes at a time.

    See below syntax to understand

    <apex:page standardController=”ControllerName” extensions=”Class1, Class2,..”> Correct

    <apex:page Controller=”MYControllerName” extensions=”Class1, Class2,..”>   Correct syntax

    <apex:page standardController=”MYControllerName” Controller=”MyController”>  Wrong

    #50877
     Divya #14
    Forcetalks

    Hi Anjali,

    A custom and standard controller cannot be referenced in the same page. Another way is you use extensions instead of Custom Controller.

Viewing 3 posts - 1 through 3 (of 3 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2018 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?