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 itskeys
,areas
andtype
properties.An area
PresentationElement
has contents in itsitems
andtype
properties.A summary
PresentationElement
has contents in itsfields
andcontent
properties.
page
is thePresentationPool
object representing the section page.page.rootElement
is aPresentationElement
object representing the root group or grid.page.rootElement.areas.header
is aPresentationElement
object representing the grid'sheader
area.page.rootElement.areas.header.items[0]
is aPresentationElement
object representing the first summary in theheader
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.