Products
About Guided Tour Online Demo Trial Version Requirements
Resources
Documents Configuration examples TagLib Reference Useful Links
Customer Support
Updates Forums Contact Services
Sales
Licensing Sales FAQ Buy Online
 
 
 
buy online   |   about us   |   german version  

» Configuration examples TreeControl

Examples: 1 | 2 | 3 | 4 | 5

Configuration example 1

Configuration:

  • Display of the root node (root="true").
  • Display of the connecting lines at the uppermost visible level (linesAtRoot="true").
  • No display of checkboxes before groups and leaves (checkboxes="false").
  • Use of the default images for opened, closed nodes and leaves.
  • By specifying expandMode="multiple", exploded nodes are not closed when additional other nodes are exploded. With the setting expandMode="single", only one node is shown exploded, i.e. all other nodes are always automatically closed.
  • The instance of the ListControl is searched for under its name in the Scope (Session/Request). If the property-attribute is used, the Control is determined from the Formbean.

<ctrl:tree
        id="prod1"
        name="products"
        action="sample201/productBrowse"
        root="true"
        linesAtRoot="true"
        labelProperty="name"
        imageProperty="type"
        expandMode="multiple"
        groupselect="true"
        checkboxes="false"/>

Impressum | This product includes software developed by the Java Apache Project
Configuration examples
 ListControl  TreeControl  TreeListControl  TabSetControl  Forms