开发者

richfaces 3.3- how to not display richTreeNode

开发者 https://www.devze.com 2023-03-17 03:26 出处:网络
<rich:tree ... 开发者_StackOverflow中文版reRender=\"mainFrm:updateTilesToRender\" value=\"#{AssetTreeControl.tree}\" var=\"item\" treeNodeVar=\"treeNode\"
        <rich:tree
                              ...
开发者_StackOverflow中文版            reRender="mainFrm:updateTilesToRender"
            value="#{AssetTreeControl.tree}" var="item" treeNodeVar="treeNode"
            adviseNodeOpened="#{AssetTreeControl.isOpenNodes}">


            <%--i want here if item.toShow == true display the tree node otherwise dont--%>
                <rich:treeNode type="regularNode" 
                    <t:div 
                        style="#{item.toShow == false? 'display:none' : 'visabilty:inline'};hight:1px;">
                        <h:outputText value="#{item.userObject.description}"
                    </t:div>
                </rich:treeNode>


You can use nodeFace attribute of rich:tree. Define two rich:treeNode, one with type="visible" and other with type="invisible". Invisible TreeNode is an empty rich:treeNode tag and in the visible node display whatever you like.

0

精彩评论

暂无评论...
验证码 换一张
取 消