Client Events |
Name | Description | Supported classes for argument |
|
expand | Fired when a node switch is clicked to show children a node. | javax.faces.event.AjaxBehaviorEvent |
contract | Fired when a node switch is clicked to hide children a node. | javax.faces.event.AjaxBehaviorEvent |
select | Fired when a node is clicked to select it. | javax.faces.event.AjaxBehaviorEvent |
deselect | Fired when a selected node is clicked to deselect it. | javax.faces.event.AjaxBehaviorEvent |
reorder | Fired when a node is dragged into a new position. | javax.faces.event.AjaxBehaviorEvent |
Attributes |
Name | Required | Request-time | Type | Description |
binding | no | false | javax.el.ValueExpression | Using an EL expression, bind the component reference to a bean property, so that the component may be accessed in the bean. |
expansion | no | false | java.lang.Boolean | Enable expansion feature of this tree component. This toggles this feature for the entire tree, per-node configuration of this feature available via the NodeState. Default = 'false'. |
expansionMode | no | false | org.icefaces.ace.component.tree.TreeExpansionMode | Select the request behaviour of the expansion feature. When 'client', the children of every node are pre-rendered in the DOM and exposed by JavaScript when nodes are expanded. In the default 'server' mode, only visible nodes are inthe DOM and expansion and contraction are caused by ajax page updates. Default = 'org.icefaces.ace.component.tree.TreeExpansionMode.server'. |
first | no | false | int | Zero-relative row number of the first row in the underlying data model to be displayed, or zero to start at the beginning of the data model. Default = '0'. |
id | no | false | java.lang.String | The component identifier for this component. This value must be unique within the closest parent component that is a naming container. |
keyConverter | no | false | org.icefaces.ace.model.tree.KeySegmentConverter | Optionally define a custom KeySegmentConverter object to produce segmented identifier keys for nodes based on something other than indexes. |
rendered | no | false | boolean | Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. Default = 'true'. |
reordering | no | false | java.lang.Boolean | Enable reordering of the nodes of this tree. Default = 'false'. |
rowIndex | no | false | int | Zero-relative index of the row currently being accessed in the underlying DataModel, or -1 for no current row. Default = '0'. |
rows | no | false | int | The number of rows (starting with the one identified by the first property) to be displayed, or zero to display the entire set of available rows. Default = '0'. |
selectMultiple | no | false | java.lang.Boolean | Disable the selection of multiple nodes simultaneously. Default = 'true'. |
selection | no | false | java.lang.Boolean | Enable selection feature of this tree component. This toggles this feature for the entire tree, per-node configuration of this feature available via the NodeState. Default = 'false'. |
selectionMode | no | false | org.icefaces.ace.component.tree.TreeSelectionMode | Select the request behaviour of the selection feature. When 'client', the (de)selection of a node is recorded on the client, and communicated to the server on the next request executing this component. In the default 'server' mode, when a node is (de)selected, the component communicates the change the server immediately with an ajax update. Default = 'org.icefaces.ace.component.tree.TreeSelectionMode.server'. |
stateCreationCallback | no | false | org.icefaces.ace.model.tree.NodeStateCreationCallback | Bind an implementer of the NodeStateCreationCallback interface to take as input, a node object and a default NodeState and return a NodeState configured with the state appropriatefor the given node object. |
stateMap | no | false | org.icefaces.ace.model.tree.NodeStateMap | Define a NodeStateMap ValueExpression to access the store of Tree node object state information. The state map provides an API for looking up the state of a particular node object, as well as reverse look-ups to get node objects with a particular state. |
stateVar | no | false | java.lang.String | The request-scope attribute exposing the state object for the currentnode when iterating. Default = 'nodeState'. |
type | no | false | java.lang.String | Define a ValueExpression that returns a String representation of the 'rendering type' of this node. The rendering type is matched against the String 'type' attribute of ace:node tag instances to determine which node template should be used to render a given node object. |
value | no | false | java.lang.Object | The Java objects representing the nodes of the tree. Supports either a List of javax.swing.tree.TreeNode implementations, MutableTreeNode implementations or an implementation of NodeDataModel. |
var | no | false | java.lang.String | The request-scope attribute (if any) under which the data object for the current row will be exposed when iterating. |