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
rajasfdcrajasfdc 

what is relation between composition and define and insert and template?

what is relation between composition and define and insert and template?i mean to say how to use this vf page i already saw example in compenent reference.but it isn't understaned by me.kindly clerify this things with examples.thanks in advance..

Navatar_DbSupNavatar_DbSup

Hi,

 

All templates defined using <apex:composition> must have one or more child <apex:insert> tags. An <apex:insert> tag indicates to pages that import the template that a section needs a definition. Any Visualforce page that imports a template using <apex:composition> must use <apex:define> to specify the content of each <apex:insert> section of the template.

 

For more information follow below  link:

http://www.salesforce.com/us/developer/docs/pages/Content/pages_templates_composition.htm

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.