Hi,

thanks for the quick response. My Problem ist not to create and display a
tree but to identify which node was clicked by the user. I think I need the
"binding-attribute". But perhaps there ist another way?

bye,

felix


> For the Client side...
> 
> <x:tree2 value="#{sbNavigatorTreeBean.treeData}" 
>                       id="client-tree" 
>                               var="node" 
>                               varNodeToggler="t" 
>                               showRootNode="false" 
>                               preserveToggle="true">
>     
> 
> and in the NavigatorBean...
> 
> public class NavigatorTreeBean {
>       
>       private TreeNode treeData;
>               
>       public NavigatorTreeBean (){
>                       TreeNodeBase folderNode;
>                       TreeNodeBase personNode;
>                       
>                       treeData = new TreeNodeBase("person", 
> "Menu", false);
> 
>               // construct a set of fake data (normally your 
> data would come from a database)
> 
>               // populate Fixed Elements portion of the tree
>                       personNode = new 
> TreeNodeBase("separator", "Menu", false);
>               treeData.getChildren().add(personNode);
>               
>                       personNode = new TreeNodeBase("person", 
> "Instruments", false);
>               personNode.getChildren().add(new 
> TreeNodeBase("document", "View","goIssueSearch", true));
>               personNode.getChildren().add(new 
> TreeNodeBase("document", 
> "Create","#{sbNavigationBean.goIssueCreation}", true ));
>               personNode.getChildren().add(new 
> TreeNodeBase("document", "Quick 
> Create","#{sbNavigationBean.goIssueCreation}", true));
>               (...)
> 
> 2005/8/29, Felix Japs <[EMAIL PROTECTED]>:
> > Hi,
> > 
> > can someone show me an example how to bind data to the 
> tree2 component?
> > 
> > <x:tree2 id="serverTree2" value="#{treeBacker.treeData}" var="node"
> > varNodeToggler="t" clientSideToggle="false" binding="??????">
> > 
> > thanks for help,
> > 
> > bye
> > 
> > Felix Japs

Reply via email to