You need to sign in to do that
Don't have an account?
Tobias Hagge
Display VF page on VF page
Hello. Is it possible (and how) to display (render) a VF page on another VF page?
Example:
Example:
<apex:page> <apex:pageblock> </apex:pageblock> Render Visualforce here <apex:pageblock> </apex:pageblock> </apex:page>
You can rather include a template in visualforce page. The below article shows more on this
https://www.salesforce.com/us/developer/docs/pages/Content/pages_templates_composition.htm
<apex:page controller="mycontroller">
<apex:form id="form">
<apex:pageBlock >
<apex:pageBlockSection columns="1">
<apex:pageBlockSectionItem >
<apex:outputLabel >Objects</apex:outputLabel>
<apex:selectList size="1" value="{!currentobject}">
<apex:selectOptions value="{!objects}"/>
<apex:actionSupport event="onchange" action="{!loadfields}" reRender="form"/>
</apex:selectList>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel >Field</apex:outputLabel>
<apex:selectList size="1" value="{!currentfield}">
<apex:selectOptions value="{!fields}"/>
</apex:selectList>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:pageBlock >
<apex:pageBlockSection columns="1">
<apex:pageBlockSectionItem >
<apex:outputLabel >Objects</apex:outputLabel>
<apex:selectList size="1" value="{!currentobject}">
<apex:selectOptions value="{!objects}"/>
<apex:actionSupport event="onchange" action="{!loadfields}" reRender="form"/>
</apex:selectList>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel >Field</apex:outputLabel>
<apex:selectList size="1" value="{!currentfield}">
<apex:selectOptions value="{!fields}"/>
</apex:selectList>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_component.htm