Hallo,

maybe You can do like this:

You override your treenode class with an own class that also has a
member 'visible' that is set when creating the treenodes. Then you can
ask this value in your jsp code.

for example similar like this:

<t:commndButton style="#{!node.visible 'display:none': ''}" .../>

I have no example, where I can try this; so I canot promise, if this will work.

Georg


2009/4/29 mitroiasi <[email protected]>:
>
>
>
> Hallo Georg,
>
> Thank you for your reply.
> But I want to set the invisible, not to delete them.
> I explain my problem.
> I have a menu implemented in a tree2 component. On the same time, on every
> page I have a next and back buttons. When the user press the "next" button,
> for example, she should see in the tree (menu) the next item selected.
> But I can select one item based on the id (path), e.q. "0:2:3". Only I build
> this tree based on some conditions and sometimes one node has the id "0:2:3"
> and in other conditions "0:3:3".
>
> For this reason I want to have the entire tree but some items to be
> invisible.
>
> If you know a good solution please let me know
> --
> View this message in context: 
> http://www.nabble.com/Set-a-node-invisible-in-tree2-tp23211324p23292512.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Reply via email to