Ensemble Tags
Tag roleexpr


This tag evaluates a role expression and stores the result as a boolean in memory. It is designed to work with the logic.if tag.

Example:
<pt:ensemble.roleexpr pt:expr="hasRole Default Role from Seed State" pt:key="boolvalue"/>
<pt:logic.if pt:expr="$boolvalue">
 <pt:logic.iftrue>
  <!-- This is displayed if expr evaluates to true. -->
 </pt:logic.iftrue>
 <pt:logic.iffalse>
  <!-- This is displayed if expr evaluates to false. -->
 </pt:logic.iffalse>
</pt:logic.if>


Tag Information
Tag Nameroleexpr

Attributes
NameTypeRequiredDefault ValueDescription
exprstringtruenullAn expression consisting of the hasRole keyword followed by an application role. This expression evaluates whether or not the current user has the specified role. Role names are not case-sensitive.
keystringtruenullThe key used to store the result in memory.
scopescopefalseportlet requestThe scope used to store the result in memory. See the Logic Tag Library description for more details about valid scope arguments.


Copyright 2005 Plumtree Software, Inc.