This tag can automatically handle display icons for the tree nodes
through the imageRoot
attribute.
If you point the imageRoot
attribute at a folder containing
appropriately named image files, the correct
images will be used for any given state of the tree's nodes. The image names should be:
action | The action method which handles expansion/contraction of tree nodes. |
|
Required | Supports runtime expression evaluation | Data bindable |
Yes | No | Yes |
|
|
dataSource | The dataSource attribute determines both
(1) the source of populating data for the tag and
(2) the object to which the tag submits data.
For example, assume that the Controller file (= JPF file) contains
a Form Bean with the property foo. Then the following <netui:textBox> tag will
(1) draw populating data from the Form Bean's foo property and (2)
submit user defined data to the same property.
<netui:textBox dataSource="{actionForm.foo}" />
The dataSource attribute takes either a data binding expression or
the name of a Form Bean property. In the
above example, <netui:textBox dataSource="foo" />
would have the exactly same behavior.
When the tag is used to submit data, the data binding expression must
refer to a Form Bean property.
In cases where the tag is not used to submit data, but is used for
displaying data only, the data
binding expression need not refer to a Form Bean property. For example,
assume that myIterativeData is a member variable on
the Controller file ( = JPF file). The following <netui-data:repeater>
tag draws its data from myIterativeData.
<netui-data:repeater dataSource="{pageFlow.myIterativeData}"> |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | Read / Write |
|
|
imageHandleDownLast | The image name for an open non-leaf node with no line below it. (Defaults to "handledownlast.gif".) |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
imageHandleDownMiddle | The image name for an open non-leaf node with a
line below it. (Defaults to "handledownmiddle.gif".) |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
imageHandleRightLast | The image name for a closed non-leaf node with no
line below it. (Defaults to "handlerightlast.gif".) |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
imageHandleRightMiddle | The image name for a closed non-leaf node with a
line below it. (Defaults to "handlerightmiddle.gif".) |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
imageLineLast | The image name for a blank area of the tree.
(Defaults to "linelastnode.gif") |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
imageLineMiddle | The image name for an area with a line through it.
(Defaults to "linemiddlenode.gif"). |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
imageLineVertical | The image name for an area with a line through it.
(Defaults to "linevertical.gif"). |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
imageRoot | The directory containing the images for tree icons,
relative to the page that includes the <netui:tree> tag. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | Yes | No |
|
|
rootNode |
Sets the root
TreeNode
of this tree.
|
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
style | The CSS style to be applied to the entire tree. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
styleSelected | The CSS style to be applied to the text
of selected nodes. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
styleUnselected | The CSS style to be applied to unselected nodes. |
|
Required | Supports runtime expression evaluation | Data bindable |
No | No | No |
|
|
tree |
The name of session attribute under which the root
TreeNode
is stored.
This attribute may take a literal or a data binding expression.
|
|
Required | Supports runtime expression evaluation | Data bindable |
Yes | No | Read / Write |
|
|