## <sas-s:TreeView>

Used to create a TreeView in a JSP page. It can have two nodeLoading states, PROGRESSIVE and FULL. PROGRESSIVE will create nodes as you need them while FULL creates all the nodes at execution of the page.

### Syntax

`<sas-s:TreeView
[autoChildrenVerify="true|false"]
[customAttributes="java.lang.String"]
[deselectNodeFunctionName="java.lang.String"]
[epilog="java.lang.String"]
[expansionLevel="int"]
[id="value"]
[imageLocation="java.lang.String"]
[imageVisible="true|false"]
[initialExpansionLevel="int"]
[instantiate="true|false"]
[lineStyle="IMAGE|NOIMAGE"]
[locale="java.util.Locale"]
[model="java.lang.String"]
[name="java.lang.String"]
[nodeLoading="FULL|PROGRESSIVE"]
[nodeRendererFunctionName="java.lang.String"]
[objectDataProperty="java.lang.String"]
[postExpandNodeFunctionName="java.lang.String"]
[postSelectNodeFunctionName="java.lang.String"]
[preExpandNodeFunctionName="java.lang.String"]
[preSelectNodeFunctionName="java.lang.String"]
[prolog="java.lang.String"]
[ref="java.lang.String"]
[render="true|false"]
[rootNodeVisible="true|false"]
[scope="page|request|session|application"]
[selectedNode="java.lang.String"]
[selectedNodesModel="java.lang.String"]
[selectionMode="NO_SELECTION|SINGLE_SELECTION|SINGLE_REQUIRED_SELECTION|MULTIPLE_SELECTION|CHECKBOX_SELECTION|CHECKBOX_LEAF_SELECTION|TRISTATE_SELECTION|COMPLEX_INDICATOR_SELECTION"]
[selectNodeFunctionName="java.lang.String"]
[styleClassPrefix="java.lang.String"]
[target="java.lang.String"]
[usePlusMinus="true|false"]
[usingURLLinks="true|false"] />`

`<sas-s:TreeView
[autoChildrenVerify="true|false"]
[customAttributes="java.lang.String"]
[deselectNodeFunctionName="java.lang.String"]
[epilog="java.lang.String"]
[expansionLevel="int"]
[id="value"]
[imageLocation="java.lang.String"]
[imageVisible="true|false"]
[initialExpansionLevel="int"]
[instantiate="true|false"]
[lineStyle="IMAGE|NOIMAGE"]
[locale="java.util.Locale"]
[model="java.lang.String"]
[name="java.lang.String"]
[nodeLoading="FULL|PROGRESSIVE"]
[nodeRendererFunctionName="java.lang.String"]
[objectDataProperty="java.lang.String"]
[postExpandNodeFunctionName="java.lang.String"]
[postSelectNodeFunctionName="java.lang.String"]
[preExpandNodeFunctionName="java.lang.String"]
[preSelectNodeFunctionName="java.lang.String"]
[prolog="java.lang.String"]
[ref="java.lang.String"]
[render="true|false"]
[rootNodeVisible="true|false"]
[scope="page|request|session|application"]
[selectedNode="java.lang.String"]
[selectedNodesModel="java.lang.String"]
[selectionMode="NO_SELECTION|SINGLE_SELECTION|SINGLE_REQUIRED_SELECTION|MULTIPLE_SELECTION|CHECKBOX_SELECTION|CHECKBOX_LEAF_SELECTION|TRISTATE_SELECTION|COMPLEX_INDICATOR_SELECTION"]
[selectNodeFunctionName="java.lang.String"]
[styleClassPrefix="java.lang.String"]
[target="java.lang.String"]
[usePlusMinus="true|false"]
[usingURLLinks="true|false"]>
[<sas-s:StyleMapKey .../>]
[<sas-s:TreeNode ...>
[<sas-s:TreeNode .../>]
[<sas-s:StyleMapKey .../>]
[<sas-s:SetProperty ...>
The value to set on the parent tag
</sas-s:SetProperty>]
[Additional <sas-s:TreeNode>, <sas-s:StyleMapKey>, <sas-s:SetProperty> tags...]
</sas-s:TreeNode>]
[<sas-s:SetProperty ...>
The value to set on the parent tag
</sas-s:SetProperty>]
[Additional <sas-s:StyleMapKey>, <sas-s:TreeNode>, <sas-s:SetProperty> tags...]
</sas-s:TreeView>`

### Attributes

`autoChildrenVerify` | autoChildrenVerify
`customAttributes` |
`deselectNodeFunctionName` | name of the JavaScript function called when the node is deselected
`epilog` |
`expansionLevel` | The expansion level of the tree.
`id` | Case-sensitive name used to identify the object instance.
`imageLocation` | The location of the needed images
`imageVisible` | Boolean value if images are to be displayed.
`initialExpansionLevel` | The expansion level of the tree.
`instantiate` | Flag that, if true, indicates that a new instance of the underlying class should be loaded if one cannot be found in PageContext. Must be used with an id attribute.
`lineStyle` | Determines if lines in a PROGRESSIVE tree are written using various images or with HTML.
`locale` |
`model` | the model String
`name` |
`nodeLoading` | Determines if the tree is written all at once or incrementally.
`nodeRendererFunctionName` | name of the JavaScript function to render a node
`objectDataProperty` |
`postExpandNodeFunctionName` | name of the JavaScript function called node expansion.
`postSelectNodeFunctionName` | name of the JavaScript function called after the normal select behavior when the node is selected
`preExpandNodeFunctionName` | name of the JavaScript function called prior to node expansion
`preSelectNodeFunctionName` | name of the JavaScript function called prior to normal select behavior when the node is selected
`prolog` |
`ref` | The variable String value that represents an object created earlier in the same scope.
`render` |
`rootNodeVisible` | Boolean value to set if rootNode is visible.
`scope` | The scope (or page context) within which the reference is available.
`selectedNode` | The selected node.
`selectedNodesModel` | The model of selected nodes specified in the TreeView.
`selectionMode` | The selectionMode to set
`selectNodeFunctionName` | name of the JavaScript function called when the node is selected
`styleClassPrefix` | style prefix used for the TreeView
`target` | Argument of each folders anchor tag.
`usePlusMinus` | Flag which determines whether or not to use the +/- images on the tree.
`usingURLLinks` | Boolean value which determines whether or not to use URL links.

### More Information

To view the documentation for the related TransformationBean, see com.sas.servlet.tbeans.html.TreeView.

If you need to subclass the tag handler class for the sas-s:TreeView tag, extend com.sas.taglib.servlet.tbeans.TreeViewTag.