The Common-Controls Tag Library

<menu:crumb>

Generates a crumb for a crumbs control element.
The <crumb>-tag may only be specified within a <crumbs>-tag.

Tag class: CrumbTag
 

[ Syntax ]

Standard Syntax
<menu:crumb
title = "String"
[ action = "String" ]
[ crumbid = "String" ]
[ disabled = "boolean" ]
[ filter = "boolean" ]
[ id = "String" ]
[ imageref = "String" ]
[ locale = "String" ]
[ onblur = "String" ]
[ onchange = "String" ]
[ onclick = "String" ]
[ oncontextmenu = "String" ]
[ ondblclick = "String" ]
[ onfocus = "String" ]
[ onkeydown = "String" ]
[ onkeypress = "String" ]
[ onkeyup = "String" ]
[ onmousedown = "String" ]
[ onmousemove = "String" ]
[ onmouseout = "String" ]
[ onmouseover = "String" ]
[ onmouseup = "String" ]
[ permission = "ACL" ]
[ tooltip = "String" ]
/>
 

[ Attributes ]

AttributeTypeDescriptionReq.RTExp
actionString Specifies the Struts action which should be executed upon selection of the crumb by the user. If no action has been specified, the action of the enclosing <crumbs>-tag is called.

Annotation: The action must be declared in one of the Struts-config.xml files.

 
crumbidString The unique identification of the crumb.  
disabledboolean Marks the Element as disabled  
filterboolean This flag specifies whether an HTML-conversion of the title and tooltip parameters should be carried out.  
idString The name of a page scope JSP bean that will contain the current element. Using the given Id, the variable can be accessed in scripting expressions in the tag Body. The id mus be a string lteral because the JSP compiler generates a variable withthis name at compile time

Annotation: A valid Java identifier must be given.

 
imagerefString Pointer to an element of the Imagemap of the Tabset. The image is drawn before the label of the tab.

The Painter implicitly appends to the imageref-value the suffixes .sel or .unsel, to be able to distinguish between the selected and unselected state.

 
localeString enables localization for the control element. String literals will be interpreted as keys in the Application.properties file.

Annotation: boolean value true oder false oder the name of a locale.

 
onblurString Fires when the object loses the input focus.

Annotation: JavaScript Code

 
onchangeString Fires when the contents of the object or selection have changed.

Annotation: JavaScript Code

 
onclickString Fires when the user clicks the left mouse button on the object.

Annotation: JavaScript Code

 
oncontextmenuString Fires when the user clicks the right mouse button in the client area, opening the context menu.

Annotation: JavaScript Code

 
ondblclickString Fires when the user double-clicks the object.

Annotation: JavaScript Code

 
onfocusString Fires when the object receives focus.

Annotation: JavaScript Code

 
onkeydownString Fires when the user presses a key.

Annotation: JavaScript Code

 
onkeypressString Fires when the user presses an alphanumeric key.

Annotation: JavaScript Code

 
onkeyupString Fires when the user releases a key.

Annotation: JavaScript Code

 
onmousedownString Fires when the user clicks the object with either mouse button.

Annotation: JavaScript Code

 
onmousemoveString Fires when the user moves the mouse over the object.

Annotation: JavaScript Code

 
onmouseoutString Fires when the user moves the mouse pointer outside the boundaries of the object.

Annotation: JavaScript Code

 
onmouseoverString Fires when the user moves the mouse pointer into the object.

Annotation: JavaScript Code

 
onmouseupString Fires when the user releases a mouse button while the mouse is over the object.

Annotation: JavaScript Code

 
permissionACL With this attribute, access to the element can be restricted.

Authorizations are checked using the com.cc.framework.security.Principal object in the user session. The principal object is registered in the session with the method com.cc.framework.security.SecurityUtil#registerPrincipal(HttpSession, Principal). It is made available by the application developer by implementing the principal interface. In this manner, any authorization system can be very easily connected within the framework.

Authorizations are always specified in the form of an Access Control List (ACL). What is involved here is a semicolon-delimited list with individual authorizations. The framweork supports the following authorization types, which, however, can be expanded at will by the application developer:

Literal
true|false -> com.cc.framework.security.StaticPermission
Role
#rolename -> com.cc.framework.security.RoleBasedPermission
Function
$functionname -> com.cc.framework.security.FunctionBasedPermission

 
titleString The title of the crumb.

The character string is HTML-encoded before outputting.

tooltipString Tooltip Text that is displayed in a Popup window when the user moves the mouse over the crumb.

The character string is HTML-encoded before outputting.

 

[ Example ]

Generates a simple crumbs control with two crumbs.


<%@ taglib uri="http://www.common-controls.com/cc/tags-menu"  prefix="menu" %>
<%@ taglib uri="http://www.common-controls.com/cc/tags-util"  prefix="util" %>

<util:imagemap name="im_crumbs">
    <util:imagemapping  rule="def"  src="images/imgDefault.gif"     width="13"  height="13"/>
    <util:imagemapping  rule="cor"  src="images/imgCorrection.gif"  width="13"  height="13"/>
</util:imagemap>

<menu:crumbs
    id="detail"
    name="detailView"
    width="100%"
    imagemap="im_crumbs">


    <menu:crumb  crumbid="DEF"  title="Default"      tooltip="Default View"  imageref="def"/>
    <menu:crumb  crumbid="COR"  title="Corrections"  tooltip="Corrections"   imageref="cor"/>
</menu:crumbs>