Thank you for the info. It was really helpful although I didn't use it :(
Because the expansion of the parents is not done automatically ... I see no
reason for using this. Maybe in the future they will integrate the automatic
expansion of the parents of selected node.



Manu Mahajan-2 wrote:
> 
> Hi.
> 
> For your specific question 
> 
> Try 
> 
> treeSelector = dojo.widget.byId('treeSelector_TREENAME')
> treeNode = dojo.widget.byId(ID) 
> treeSelector.doSelect(treeNode);
> dojo.event.topic.publish("treeSelected",
> {node:dojo.widget.byId(treeSelection)});
> 
> Replace TREENAME with the name of your tree, ID is the id of the node that
> you want to select
> 
> I have posted a detailed example of using the tree on my blog which you
> might find useful. It's at http://www.codepencil.com/?p=4
> 
> Manu
> 
> -----Original Message-----
> From: GEDA [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 13, 2007 12:30 PM
> To: user@struts.apache.org
> Subject: Set the tree node to a given value
> 
> 
> Hi.
> 
> All worked great for displaying the <s:tree element and even getting the
> selected node using the "treeSelectedTopic" property, but now I am stuck. 
> I don't know how to set the default node of the tree when loading the
> page.
> What I mean is, how do I get a node id from the action so that when the
> tree
> is loaded, a specific node would be selected ?
> 
> Thanks.
> -- 
> View this message in context:
> http://www.nabble.com/Set-the-tree-node-to-a-given-value-tf4433953.html#a126
> 49709
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
:-((:-((:-((:-((:-((:-((:-((:-((
-- 
View this message in context: 
http://www.nabble.com/Set-the-tree-node-to-a-given-value-tf4433953.html#a12668947
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to