Gears are rendered using a nested set of pages and page fragments. A page calls a layout, using the <paf:layout/> tag. This element renders one of several page layouts, based on attributes of the request. The page layout consists of a table with a variable number of cells. Each cell renders gear contents using a region element embodied in the region.jspf page fragment. The region fragment uses the following elements to actually render the contents of the gear;

<paf:context var="gearContext" type="${gearContextType}"/>
<c:set target="${gearContext}" property="gear" value="${gear}"/>
<c:set target="${gearContext}" property="gearMode" value="${gearMode}"/>
<paf:include context="${gearContext}"/>

The page, layout, and region elements are described in more detail in the Portal Templates section of this chapter.

 
loading table of contents...