You need to sign in to do that
Don't have an account?
crocodile
Error: A custom and standard controller cannot be referenced in the same page
Hi,
Before asking my question plz clarify:
UI behavior and Controlling behavior are not the same right?
I assumed both are not same.
I have a Custom Object: MyObj and an Apex Class: MyClass.
Now am trying to create a VF page with MyObj UI behavior and MyClass Controlling behavior. The code is:
<apex:page standardController="MyObj__c" controller=" MyClass">
</apex:page>
But getting an error: Error: A custom and standard controller cannot be referenced in the same page
Why can't I use both Controllers in VF page?
Thx in adv,
VNath
Change 'controller="className"' to extensions="className". then you can use both
we cant use StandardController and Controller for same page , you need to use extension controller
Thanks,
Bala