PresentationElement

Represents a group, an area or a summary in an Escenic section page or an article's related items. A section page is represented by a PresentationPool bean, which owns a single root group (PresentationElement), accessed via its rootElement property. This root group is usually called the grid}. The following JSP expression returns the title field of a summary in the first area of the header group of a section page. The section page is held in a variable called page:

  • A group PresentationElement has contents in its keys, areas and type properties.

  • An area PresentationElement has contents in its items and type properties.

  • A summary PresentationElement has contents in its fields and content properties.

  • page is the PresentationPool object representing the section page.

  • page.rootElement is a PresentationElement object representing the root group or grid.

  • page.rootElement.areas.header is a PresentationElement object representing the grid's header area.

  • page.rootElement.areas.header.items[0] is a PresentationElement object representing the first summary in the header area.

  • page.rootElement.areas.header.items[0].fields.title is the summary's title field.

The following JSP expression returns the title field of a summary in the first area of the header group of a section page. The section page is held in a variable called page:

You can determine what kind of a section page component a PresentationElement represents by testing its properties:

${page.rootElement.areas.header.items[0].fields.title}

In this expression:

PresentationElement has the properties described in the following sections.