Overview | Library | Tag | Help
| FRAMES NO FRAMES

## ICEfaces EE Composite Components
Tag selectionTree

## The Selection Tree Composite Component

### Renders a hierarchical tree view of selected nodes

### Features

- Selecting a checkbox in the tree will select all of its children
- Any parent in the tree will show partial selection if any of its children are checked

### How To Use

1. Create an instance of the SelectionTreeModel class in your managed bean
2. Create the tree model from SelectionTreeNode objects and attach the root node to the SelectionTreeModel
3. Use the <ice-cc:selectionTree/> tag in your page. Nest <ice-cc:css/> in your page <head> tag.
4. Bind the 'tree' attribute on the tag to your managed bean property (eg. spinner="#{myBean.tree})

Example:

    <ice-cc:selectionTree tree="#{selectionTreeExampleBean.treeModel}"> <ice:outputText value="#{node.userObject.label}"/> </ice-cc:selectionTree>

Tag Information
Tag Class | javax.faces.webapp.FacetTag
TagExtraInfo Class | None
Body Content | tagdependent
Display Name | Selection Tree

Attributes
Name | Required | Request-time | Type | Description
tree | true | false | `com.icesoft.faces.facelets.component.selectiontree.SelectionTreeModel` | Must resolve to an instance of the SelectionTreeModel
imageDir | false | false | `java.lang.String` | Set directory for location of the images.
hideRootNode | false | false | `java.lang.Boolean` | Declares whether the root tree node will be rendered. Valid values are true and false.
hideNavigation | false | false | `java.lang.Boolean` | Declares whether the navigation links will be rendered. Valid values are true and false.
keyboardNavigationEnabled | false | false | `java.lang.Boolean` | Enables keyboard support, default value is true.
style | false | false | `java.lang.String` | CSS style(s) to be applied when this component is rendered
styleClass | false | false | `java.lang.String` | Space-separated list of CSS style class(es) to be applied when this element is rendered.

Variables
| No Variables Defined.

Overview | Library | Tag | Help
| FRAMES NO FRAMES

Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.