NetUI Tag Library Documentation (Version 1.0.2)

netui
netui:treeHtmlAttribute Tag

Set an attribute on the tree.

Syntax

<netui:treeHtmlAttribute
    [applyToDescendents="boolean"]
    attribute="string"
    [onDiv="string_or_expression"]
    [onIcon="string_or_expression"]
    [onSelectionLink="string_or_expression"]
    value="string_or_expression" />

Description

Set an attribute on the tree.

Attributes
applyToDescendents
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: No

Apply the attribute to descendents of this node.
attribute
Required: Yes  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: No

Sets the name of the attribute. This must be in the proper HTML Attribute form. For example, "onmouseclick" or "href".
onDiv
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: No

Set the attribute value on the item <div>.
onIcon
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: No

Set the attribute value on the icon
onSelectionLink
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: No

Set the attribute value on the link around the icon.
value
Required: Yes  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: No

Sets the HTML attribute value.

Example

The following example shows a <netui:tree> tag with both a child <netui:treeLabel> and <netui:treeHtmlAttribute> tag that form the label for the root folder of the tree. The <netui:treeHtmlAttribute> outputs the attribute name="A1" on the anchor element used for the selection link of the tree item.

    <netui:tree dataSource="pageFlow.myTree" selectionAction="postback" tagId="myTree">
        <netui:treeItem expanded="true" >
            <netui:treeLabel>Root Folder</netui:treeLabel>
              <netui:treeHtmlAttribute attribute="name" value="A1" onSelectionLink="true"/>
        </netui:treeItem>
    </netui:tree>


Tag Information
Tag Classorg.apache.beehive.netui.tags.tree.TreeHtmlAttribute
TagExtraInfo ClassNone
Body Contentempty
Display NameNone

See Also

<netui:tree> Tag

org.apache.beehive.netui.tags.tree.TreeElement