Developing Web 2.0 applications
with JavaServerFaces
and Dreamweaver
>> Just Became Easier
Documentation
Search
  1. Introduction
  2. Getting Started
  3. Tomahawk Concepts
  4. Code View Support
  5. Design View Support
  6. Tag Object Toolbars
  7. Tomahawk Server Behaviors
  8. Tomahawk Property Inspectors
  9. Tomahawk Tag Reference
Tomahawk Tag Library
  t:aliasBean
  t:aliasBeansScope
  t:buffer
  t:captcha
  t:checkbox
  t:collapsiblePanel
  t:column
  t:columns
  t:commandButton
  t:commandLink
  t:commandNavigation
  t:commandNavigation2
  t:commandSortHeader
  t:dataList
  t:dataScroller
  t:dataTable
  t:div
  t:document
  t:documentBody
  t:documentHead
  t:dojoInitializer
  t:fieldset
  t:graphicImage
  t:headerLink
  t:htmlTag
  t:iconProvider
  t:inputCalendar
  t:inputDate
  t:inputFileUpload
  t:inputHidden
  t:inputHtml
  t:inputSecret
  t:inputText
  t:inputTextHelp
  t:inputTextarea
  t:jsValueChangeListener
  t:jsValueSet
  t:jscookMenu
  t:message
  t:messages
  t:navigationMenuItem
  t:navigationMenuItems
  t:newspaperTable
  t:outputLabel
  t:outputText
  t:panelGrid
  t:panelGroup
  t:panelLayout
  t:panelNavigation
  t:panelNavigation2
  t:panelStack
  t:panelTab
  t:panelTabbedPane
  t:popup
  t:radio
  t:saveState
  t:schedule
  t:selectBooleanCheckbox
  t:selectItems
  t:selectManyCheckbox
  t:selectManyListbox
  t:selectManyMenu
  t:selectManyPicklist
  t:selectOneCountry
  t:selectOneLanguage
  t:selectOneListbox
  t:selectOneMenu
  t:selectOneRadio
  t:selectOneRow
  t:stylesheet
  t:subform
  t:swapImage
  t:tabChangeListener
  t:toggleGroup
  t:toggleLink
  t:togglePanel
  t:tree
Selected t:tree2
  t:treeCheckbox
  t:treeColumn
  t:treeSelectionListener
  t:updateActionListener
  t:validateCreditCard
  t:validateEmail
  t:validateEqual
  t:validateRegExpr
  t:xmlTransform
If you like this documentation, please take a look at my book:

9. Tomahawk Tag Reference

Documentation > Tomahawk > Tomahawk Tag Reference > Tomahawk Tag Library > t:tree2

t:tree2

<p>The <t:tree2> tag is a component that generates an HTML-based tree that gets its data from a backing bean. The tree's appearance can be customized through special attributes, enabling you to control the appearance of each of node in the tree. Other JSF components, such as h:outputText, h:graphicImage, and so on, can be contained by the nodes of the tree. The node exand/collapse behavior of the tree can be configured to use client-side or server-side toggling.</p>

Example

<t:tree2> </t:tree2> 

Note: The official MyFaces Tomahawk documentation states that the attributes of this tag accept literal values or value-binding expressions. The Tomahawk implementation, however, ignores boolean value-bindings such as true and false in some attribute of this tag. Therefore, JSFToolbox for Dreamweaver detects the boolean literal style you are using (i.e. "true" or "true") and toggles the value in the same notation when you use the Properties panel.

Tag Attributes

binding Expression
 
The value-binding expression linking this component tag to a backing bean property.
clientSideToggle Text
 
The clientSideToggle attribute expects a boolean value that, when true, indicates that client-side toggling should be used for this tree.
id Text
 
The unique identifier value for this component. The value must be unique within the closest naming container.
imageLocation Text
 
The imageLocation attribute specifies the location of images for this component.
javascriptLocation Text
 
The javascriptLocation attribute defines the location of JavaScript files for this component.
preserveToggle Text
 
The preserveToggle attribute expects a boolean value that, when true, indicates that the tree should preserve its toggled state between JSF requests.
rendered Text
 
A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered.
showLines Text
 
The showLines attribute attribute expects a boolean value that, when true, indicates that lines should be shown in the tree.
showNav Text
 
The showNav attribute expects a boolean value that, when true, indicates that plus/minus navigation handles should be shown beside each node in the tree.
showRootNode Text
 
The showRootNode attribute expects a boolean value that, when true, indicates that the root node of the tree should be displayed.
styleLocation Text
 
The styleLocation attribute defines the location of Cascading Style Sheets for this component.
value Text
Required
The value attribute sets the current value for this component.
var Text
 
The var attribute sets the name of a request-scope attribute exposing the data for each iteration over the rows in the underlying data model for this table.
varNodeToggler Text
 
The varNodeToggler attribute defines the name of a server-side object that controls expanding and collapsing of nodes in the tree.