function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
riazriaz 

how Add two standard controller with v.f page

How can i add two standardcontroller in my visual for pages, i know i can do it with extension, but i dont want to use extensions with my page
Best Answer chosen by riaz
Ramu_SFDCRamu_SFDC
Ideally you cannot add two standard controllers to a single visualforce page however you can add extensions and make it work as standard controllers by defining standardcontrollers and standardsetcontrollers within apex. The below post might help

https://developer.salesforce.com/forums?id=906F000000096v4IAA

All Answers

Ramu_SFDCRamu_SFDC
Ideally you cannot add two standard controllers to a single visualforce page however you can add extensions and make it work as standard controllers by defining standardcontrollers and standardsetcontrollers within apex. The below post might help

https://developer.salesforce.com/forums?id=906F000000096v4IAA
This was selected as the best answer
kiranmutturukiranmutturu
You can't add two standard controllers to one page. And you are saying that you know that you can do it with extensions which is also wrong. You can bind StandardObjects or custom objects to a standardcontroller, apex classes to extensions but not obects.
riazriaz
kiran_mutturu thanks