This content has been marked as final.
Show 4 replies
-
1. Re: Rich Faces Tree Expanding
jbarak Sep 11, 2007 1:37 PM (in response to roykachouh)Just finished implementing the same with the richfaces 3.1.0 rc5 jars. You can set the adviseNodeOpen property in the tree.
<rich:tree id="navTree1" switchType="server" style="width:200px" value="#{orderMenu.root}" var="item" nodeFace="#{item.type}" showConnectingLines="false" toggleOnClick="true" nodeSelectListener="#{orderMenu.selectNode}" adviseNodeOpened="#{orderMenu.isNodeExpanded}" iconLeaf="/images/blackdot.jpg"> <rich:treeNode type="level0" icon="#{item.icon}"> <h:outputText value="#{item.label}" title="#{item.toolTip}" /> </rich:treeNode> <rich:treeNode type="level1" icon="#{item.icon}"> <h:outputText value="#{item.label}" title="#{item.toolTip}" /> </rich:treeNode> <rich:treeNode type="level2" icon="#{item.icon}"> <h:outputText value="#{item.label}" title="#{item.toolTip}" /> </rich:treeNode> <rich:treeNode type="level3" icon="#{item.icon}"> <h:outputText value="#{item.label}" title="#{item.toolTip}" /> </rich:treeNode> </rich:tree>
good luck !
check out
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=118305 -
2. Re: Rich Faces Tree Expanding
roykachouh Sep 11, 2007 1:46 PM (in response to roykachouh)Thanks! But where did you get the 3.1.0 rc5 jars? The site still has 3.0? Was the upgrade to the latest jars seemless?
-
3. Re: Rich Faces Tree Expanding
roykachouh Sep 11, 2007 2:01 PM (in response to roykachouh)Got it thanks...the only difference is it looks like the package changed for the TreeNode class that we must implement
-
4. Re: Rich Faces Tree Expanding
nayanj Sep 18, 2007 12:49 PM (in response to roykachouh)
I have the same requirement of expanding tree nodes by default. Can you suggest how to achieve this with richfaces 3.0.1? Upgrading to richfaces 3.1 seems to break seam 1.2.1