Here's a thought: Providing 2 links at one level could be equivalent to "always displaying the + icon along-side the parent ALWAYS". That way, you can associate the necessary [seperate] actions for the parent-click and load-children click;
Some other options: a. You can have a default child for each parent (say) "None" - whenever the parent has no children. b. If its not too expensive, you could attempt to find out if a parent has at least one child, and only then show the (+) - this would not necessarily mean loading the children, but just checking for presence. -Saurabh -----Original Message----- From: Tushar Kharbanda [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 1:20 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Problem!! TreeView [Struts-Layout] I am making a dynamic tree by getting the data from some webservices and hence populating the tree. But I do not want to load the entire tree at one go... instead I want to load the children only if the parent is clicked upon... i.e. clicked on the (+) icon next to the Tree Node.... Now the problem is that (+) icon next to the parent will not be shown as I am not loading the children in the parent initially.....Also I cannot load the children by making the user click on the parent's name coz that click has a different action which is to show the parent details in the right frame So I thought if I can provide 2 links at one level of a node, one for loading children and one for showing details of parent in the right frame.... but not sure if that's possible... Is there a soln to above prob.... or else is there a way by which (+) icon can be shown without loading children and then some method call back when user clicks on (+) Regards Tushar Yahoo! India Matrimony: Find your partner online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]