+ Start a Discussion
karimulla salesforcekarimulla salesforce 

Include page... in salesforce

Can we use apex:include  multiple controller,

Ex: page1
 <apex:page  controller="class1">

 <apex:include pageName="page2"/>
</apex:page>

Page:2

<apex:page  controller="class2">

 <apex:inputext />
</apex:page>

 
Deepali KulshresthaDeepali Kulshrestha
Hi karimulla,

Yes, you can surely use <apex: include> multiple controllers in your visualforce page.

To understand how to use this please visit the link below:

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_include.htm

Go through these links also fro additional information about multiple controllers:

http://salesforce.stackexchange.com/questions/13444/multiple-controller-extensions-communication

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


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com