PhotoAlbum Application Download Support Developer Guide
Skins:
Resources/Beans Handling
Ajax Miscellaneous
Usage
Default Tree Model
Tree with Drag and Drop support
Tag Information

Tree is a component that renders a tree control on the page.
The most important tree features are:

  • Native support for Ajax operations
  • Support for "ajax", "client" and "server" switch types
  • Built-in drag/drop capabilities
  • Flexible look
Ajax switch type

This tree uses "ajax" switch type, note that for collapse/expand operations it will be Ajax request to the server. You may see short delay in this case.


Baccara
David Miles Huber
Bach, Johann Sebastian

Chris Rea


View Source
Client switch type

This is exactly the same tree, but now it uses "client" switch type. Note, that all nodes actually rendered up-front and expand/collapse now do not requre server call


Baccara
David Miles Huber
Bach, Johann Sebastian

Chris Rea


View Source
Server switch type

This is again same tree, but now it uses "server" switch type. Full page content will be reloaded at every click.


Baccara
David Miles Huber
Bach, Johann Sebastian

Chris Rea


View Source

Note how the tree switched on "client" does not "remember" its state when whole page is reloaded. At the same time "ajax" tree remembers its state without any additional code.

RichFaces Wiki RichFaces Project Site