开发者

richfaces 3.3- how to not display richTreeNode

        <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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜