apex:insert, apex:composition, apex:define

Sample Code:

Visualforce pages:

Template:

<apex:page >
    <apex:outputText >Welcome to Accord</apex:outputText><br/><br/>
    <apex:insert name="header"/><br/><br/>
    <apex:outputtext >We are Pioneer in training students</apex:outputtext><br/><br/>
    <apex:insert name="body"/><br/><br/>
    <apex:outputtext >Thank You</apex:outputtext>
</apex:page>


Sample:

<apex:page sideBar="false">
    <apex:composition template="Template">
        <apex:define name="header">
            Accord welcomes you!
        </apex:define>
    </apex:composition>
</apex:page>


Output:

 

No comments:

Post a Comment