3 Replies Latest reply on Sep 6, 2011 1:22 AM by er.viveksrivastava

    how to use <rich:tree > in rich4.0 give me example?

    er.viveksrivastava Newbie

      how to use <rich:tree > in rich4.0 give me example?

        • 1. Re: how to use <rich:tree > in rich4.0 give me example?
          iabughosh Master

          hi er,

          i'm using rich:treeModelRecursiveAdaptor with one-level tree :

          <rich:tree id="tree"

                                                                                   var="node"

                                                                                   nodeType="#{node.type}"

                                                                                   toggleType="ajax"

                                                                                   selectionType="ajax"

                                                                                   title="some label">

                                                                      <rich:treeModelRecursiveAdaptor roots="#{tree.roots}"

                                                                                                                                                      nodes="#{node.folders}">

                                                                                <rich:treeNode title="#{node.path}"

                                                                                                                 type="folder">

                                                                                          <h:outputText value="#{node.label}" />

                                                                                </rich:treeNode>

                                                                      </rich:treeModelRecursiveAdaptor>

                                                            </rich:tree>

           

          where tree.roots = List<? extends TreeNodeImpl>

           

          regards.