4 Replies Latest reply on Sep 18, 2007 12:49 PM by nayan j

    Rich Faces Tree Expanding

    roy kachouh Newbie

      Is there a way to have the rich faces tree, i.e. all it's folders, expanded by default. For certain situations I don't want to have the users need to expand the folders manually?

        • 1. Re: Rich Faces Tree Expanding
          Janaki Thapliya Newbie

          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}"
           <rich:treeNode type="level0" icon="#{item.icon}">
           <h:outputText value="#{item.label}" title="#{item.toolTip}" />
           <rich:treeNode type="level1" icon="#{item.icon}">
           <h:outputText value="#{item.label}" title="#{item.toolTip}" />
           <rich:treeNode type="level2" icon="#{item.icon}">
           <h:outputText value="#{item.label}" title="#{item.toolTip}" />
           <rich:treeNode type="level3" icon="#{item.icon}">
           <h:outputText value="#{item.label}" title="#{item.toolTip}" />

          good luck !

          check out

          • 2. Re: Rich Faces Tree Expanding
            roy kachouh Newbie

            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
              roy kachouh Newbie

              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
                nayan j Newbie

                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