You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Luca De Petrillo <lu...@websiteitalia.com> on 2004/05/28 09:55:23 UTC

Tree component and dynamic elements load/unload

Hi!

 

I’ve a little question about the contrib:Tree component.

 

I’ve an Hibernate-Spring-Tapestry application, and I want to use the
contrib:Tree to make a Tree list of people (each with parent-child
relations).

 

The problem is that the tree could be really huge (about 10000 people), and
load all the list one time, to built the tree, could be a pain. 

 

There is a way to load (and release) tree element at runtime? (ie, catch the
node expand/collapse action, and load/unload the resources as needed).

 

I’ve tried with the TreeStateListener, but every change on the tree model
isn’t reflected in the tree component.

 

Next, I will try with the TreeStateManager, but from it I can’t access
directly to the TreeDataModel to modify it.

 

I’ve seen that in the Workbench, in the tree example, is the Node class that
load his “child” when requested, but what about the release?

 

Greetings!

 

Luca De Petrillo

 

 <ma...@websiteitalia.com>
luca.depetrillo@websiteitalia.com