Templates Comprising the Component

A template component always has a primary template called the Partial. This name evokes the role it plays as a part of the web page at runtime. Your Partial template includes the main markup that determines how the component’s attributes appear on the page.

If you make your component available as a Multiple (Report) type region, then you can define additional templates:

Consider a template component Grouped Name/Value Pairs that defines a report attribute TITLE, component attributes NAME and VALUE, group attributes named GROUPNAME and GROUPID, as well as a BUTTONS slot. The figure below shows how the different templates cooperate to produce the result on the right. The developer has configured the title, chosen DNAME and DEPTNO for the group name and id, used ENAME and SAL for the name and value attributes, and added a single (Process Selected Employees) button into the Buttons slot.

Templates Involved to Format a Multiple (Report) Component

Description of the illustration multi-report-templates.png