You can do it via code in a custom tree node. Just don't return the
node you don't want to show in the getChildren() method and don't
count it in the getChildCount() method. AFAIK, there is no way to do
it in the XHTML/JSP.


On 10/18/06, Jiang, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]> wrote:
I need to hide a branch of a tree for certain users due to configuration.  I 
tried to use something like this

        <f:facet name="Test Folder">
            <h:panelGroup rendered="#{node.render}">
....
            </h:panelGroup>
        </f:facet>

I could only hide a node this way, the little + sign still shows and can be 
clicked to show the branch under this node.  What's a better way for hide a 
branch?

I'd like to leave my tree data alone since it is shared by all users.  This is 
just a display option.

Thanks,

Jane

Reply via email to