Source Viewer : /tree/checkbox-tree-page.htm
<!--A velocity macro which prints all nodes in specified list-->
#macro (printState $list)
#if($list)
#foreach ($node in $list)
$node<br>
#end
#end
#end
This page provides a demonstration of the CheckboxTree component.
<p/>
In this example the Page is a TreeListener and in the Log below it will print all
events recorded.
$form
<div style="width:55em; border:1px solid #CCCCCC; margin-top: 20px;">
<div style="border-bottom: 1px solid #CCC; background-color: #C0C0C0; padding: 5px">
<b>Log</b>
</div>
<dl style="padding-left: 5px">
<dt><strong>Selected</strong></dt>
<dd>#printState($selected)</dd>
<dt><strong>Deselected</strong></dt>
<dd>#printState($deselected)</dd>
<dt><strong>Expanded</strong></dt>
<dd>#printState($expanded)</dd>
<dt><strong>Collapsed</strong></dt>
<dd>#printState($collapsed)</dd>
</dl>
</div>
<br>
$optionForm