NetUI Tag Library Documentation (Version 1.0.1)

netui
netui:treeItem Tag

Adds a tree node to the parent node (either a <netui:tree> or another <netui:treeItem>).

Syntax

<netui:treeItem
    [action="string_or_expression"]
    [clientAction="string_or_expression"]
    [disabled="boolean_or_booleanExpression"]
    [expandOnServer="boolean_or_booleanExpression"]
    [expanded="boolean_or_booleanExpression"]
    [href="string_or_expression"]
    [icon="string_or_expression"]
    [scope="string_or_expression"]
    [tagId="string_or_expression"]
    [target="string_or_expression"]
    [title="string_or_expression"] >
    ... JSP content ...
</netui:treeItem>

Description

Adds a tree node to the parent node (either a <netui:tree> or another <netui:treeItem>).

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

The action to invoke when this tree node is clicked.
clientAction
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

Sets an action to run on the client when the tree node is selected.
disabled
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

Boolean. Determines if the tree node is enabled or disabled.
expandOnServer
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

If this attribute is true and runAtClient is also true, then an expansion on this node will cause that to happen on the server. When runAtClient is false, all expansions will happen on the server.
expanded
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

Sets the expanded/collapsed state of the tree node.
href
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The href attribute of the node's link.
icon
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The icon URI.
scope
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

Set the target scope for this tree node's URI. Any page flow that handles the URI will be made active within the given scope. Scopes allow multiple page flows to be active within the same user session; page flows in different scopes do not in general interact with each other. This attribute is commonly used in conjunction with the target attribute to invoke a new page flow in a separate window.
tagId
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

Sets of the id attribute of the tree node
target
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

Sets the window target of the node's link.
title
Required: No  |   Type: String  |   Supports runtime evaluation / JSP Expression Language: Yes

The node's title

Example

In this first sample, a TreeItem contained by a parent TreeItem or Tree will display with the label of "Login" and, when clicked, will navigate to the Login pageflow.

    <netui:treeItem action="/netui/login/Login.jpf">Login</netui:treeItem>

In this next sample, a TreeItem contained by a parent TreeItem or Tree will display with the label of "Human Resources" and icon "folder16.gif" and most likely will have child TreeItem tags because it does not have an action and starts expanded.

    <netui:treeItem icon="folder16.gif" expanded="true">
        <netui:treeLabel>Human Resources</netui:treeLabel>
        ...
    </netui:treeItem>


Tag Information
Tag Classorg.apache.beehive.netui.tags.tree.TreeItem
TagExtraInfo ClassNone
Body Contentscriptless
Display NameNone

See Also

<netui:tree> Tag

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