Logic Tags
Tag collectionlength


This tag evaluates the length of a collection and stores the result in memory.

Example:
<pt:logic.collectionlength pt:data="testcollection" pt:key="length"/>
would store the length of the 'testcollection' collection as an editable shared variable using the key 'length'.


Tag Information
Tag Namecollectionlength

Attributes
NameTypeRequiredDefault ValueDescription
datastringtruenullThe key used to retrieve the XPArrayList data collection as a shared variable from Tag or PortletRequest scope memory.
keystringtruenullThe key used to store the result value in memory.
scopestringfalseportlet requestThe scope used to store the result value. See the Logic tag library description for details about valid scope arguments.


Copyright 2005 Plumtree Software, Inc.