<Portlet:ComponentGuard . . . |
compatability |
|
General Attributes Label Tag |
Attribute Name |
Mandatory/Optional |
Description |
name |
Mandatory |
This name must match a name defined in components.xml |
hasAccess |
Optional |
Boolean to display or not display content between starting and closing
tags dependant on user access. If not specified this defaults to true.. |
|
Overview
This is a widget tag that allows control over areas of a JSP dependant
on user privaleges and access to particular components.
|
|
In Browser
n/a |
|
JSP Code
<Portlet:ComponentGuard name="Asset.AssetViewer">
html content
</Portlet:ComponentGuard> |
|
|
How they work
This widget works by guarding the html content code , dependant on business
logic being true or false. You can reverse the boolean logic by setting
the attribute hasAccess='' to true or false ... when set to false
when the logic returned is true , the html content will not be displayed
and vice versa.
|