You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Jiang, Jane (NIH/NCI) [C]" <ji...@mail.nih.gov> on 2006/10/18 15:40:17 UTC

How to hide a tree2 branch

Hi,

I'd like to hide a branch of my tree based on some session settings, for example, user is a guest user.   I tried to use the rendered attribute of the panelGroup.  
        <f:facet name="Secure Folder">
            <h:panelGroup rendered="#{user.hasAccess}">
                ...
            </h:panelGroup>
        </f:facet> 

It does hide the node, but the little + sign and the line still shows up.  Is there a better way to hide a branch completely?  

Thanks a lot for your help,

Jane