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
DIVAKAR BABU 15DIVAKAR BABU 15 

How many custom controllers can we have per Visual Force page?

NagendraNagendra (Salesforce Developers) 
Hi Divakar,

Currently, there is no limit on the number of extensions you can have on a VF Controller. Of course, having too much of them would also affect the readability and maintainability of the code.

Note: You can use one extension attribute and You can mention many classes with comma separated.

For more information may I suggest you please check with below link from the community forums which might help you further with the above requirement. Hope this helps.

Kindly mark this as solved if it's resolved.

Thanks,
Nagendra
Suraj Tripathi 47Suraj Tripathi 47
Hii DIVAKAR BABU 15,
Greetings

You can have the two controller functionality in one visualforce page by using standard controller and extension.
So in extension you can mention the name of multiple controller from which you want to access the functionality of these controller

I hope it helps you.

kindly Let me inform if it helps you and close your query by choosing best answer if you got your right answer so it can helps others.
Thanks and Regards
Suraj Tripathi.