I am doing the same thing.

I have it working except for one problem.

The loading works fine but so far I have not found a way to make the tree 
update its display when an item is added to the data. If nothing new is added 
to the dataset then every thing works fine.

The main issue I found was that you only get the + symbol if the item has 
children. What I do it always load one more level than is actually displayed. 
So when click on the + I dont load the children I load the children's children.

To do the loading I sub classed LinkTree and override thew 
onJunctionLinkClicked(AjaxRequestTarget target, TreeNode node) method.

Still working on the display update when a new item is added to the part of the 
tree that is already displayed.
 
Ian

----- Original Message ----
From: pixotec <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Friday, 21 September, 2007 11:55:46 AM
Subject: LinkTree lazy loading possible?


I want to use LinkTree to represent a very very large hierarchy (the loading
of the whole thing is expensive...).
Is there an AJAX way of loading the children of a node just when clicking on
the "plus-icon" for expanding?

-- 
View this message in context: 
http://www.nabble.com/LinkTree-lazy-loading-possible--tf4493231.html#a12814684
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








      ___________________________________________________________ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html

Reply via email to