You need to sign in to do that
Don't have an account?
How to include page with custom controller?
I have a 3 VisualForce pages with almost identical content, but working with different controllers. I tried to extract common content and use <apex:include> tag but got following problems:
1. Page does not compile unless it is a "complete" page with <apex:page> tags, although the intent is to include that page into another ("main") page. I had to add <apex:page> tags.
2. Then page would not compile because it references custom controller data structures. I had to add controller description at the top. Now both "main" and "include" pages have controllers defined, with "include" page having a preference! As a result, I no longer can use different controllers at my 3 separate pages.
Is there a solution to this problem?
Im not sure i completley understand your problem, but do you know about components?
i think thats what you are looking for
https://na7.salesforce.com/apexpages/apexcomponents.apexp
Search for apex:component tag in this documentation
All Answers
Im not sure i completley understand your problem, but do you know about components?
i think thats what you are looking for
https://na7.salesforce.com/apexpages/apexcomponents.apexp
Search for apex:component tag in this documentation