Project: DHTML eXtensions Tree taglib

Version: 0.1.0

Table of Contents

Overview

This taglib contains tags for definition of special DHTML tree control (based on DHTML eXtensions Tree component). It includes such features as:

Requirements

This custom tag library requires servlet container that supports the JavaServer Pages Specification, version 1.1 or higher.

Configuration

Follow these steps to configure your web application with this tag library:

To use the tags from this library in your JSP pages, add the following directive at the top of each page:

<%@ taglib uri="http://www.scand.com/taglibs/dhtmlxtree" prefix="sc" %>

where "sc" is the tag name prefix you wish to use for tags from this library. You can change this value to any prefix you like.

Tag Summary

DHTMLTree tags
dhtmlxtree This tag creates necessary initial tree settings and define tree object on page.
 

Tag Reference

dhtmlxtree Availability: 0.1.0

This tag creates necessary initial tree settings and define tree object on page.

Tag BodyJSP    
Restrictions None
AttributesNameRequired Runtime Expression Evaluation Availability
name false true 0.1.0

Name of the tree js object to use in javascript, if skiped, then name autogenerated

width false true 0.1.0

Width of the tree (definitely it sets the with of the tree box, leaving the with of the tree itself by 100%).

height false true 0.1.0

Height of the tree. Default value is "100%".

imgsPath false true 0.1.0

Absolute or relative path to directory which contains tree icon files, "imgs" directory by default.

checkboxes false true 0.1.0

Show checkboxes (none, twoState, threeState). Default value is "none".

dragndrop false true 0.1.0

Activate drag-&-drop (true,false). Default value is "false".

style false true 0.1.0

Style for the tree box. Default value is "background-color:whitesmoke;border:1px solid blue;".

onSelect false true 0.1.0

JavaScript function to call on node selection.

onCheck false true 0.1.0

JavaScript function to call on node (un)checking.

onDrop false true 0.1.0

JavaScript function to call on node drop.

xmlSourceUrl false true 0.1.0

Url of the xml file used to load levels dynamically.

VariablesNone
ExamplesNone

Examples

See the example application dhtmlxtree-sample.war for examples of the usage of the tags from this custom tag library.

Java Docs

Java programmers can view the java class documentation for this tag library as javadocs.