TagLib
Reference
tag libraries
Jaffa Tags
widgets
  • buttons
  • check box
  • date/time editbox
  • drop down
  • editbox
  • grid
  • image
  • label
  • lookup
  • radio button
  • table
  • text field
  • user grid
  • Layout Controls
  • folding section
  • Guards
  • component guard
  • function guard
  • Page Controls
  • header
  • form
  • footer
  • raise errors
  • Other Tags
    Struts
  • html
  • logic
  • bean
  • util
  • template
  • digester
  • JSTL
  • Sun Site
  • Taglibs
  • reference
  • gaurds/component guard
    <Portlet:ComponentGuard . . . compatability
     
    Overview

    This is a widget tag that allows control over areas of a JSP dependant on user privaleges and access to particular components.

     
    Sample
    <Portlet:ComponentGuard name="Asset.AssetViewer">

    html content

    </Portlet:ComponentGuard>
     
    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..
     
     
     
    Component Guard top

    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.



    index.html, Last Modified 28-Jun-2003 at 04:14:10pm