0 Replies Latest reply on Aug 5, 2012 9:16 PM by largegy

    About < rich: tree > tag, on the problem of child node.

    largegy

      Now I can only click ahead of the parent plus/minus signs icon, can open/close child nodes, but click on parent's node name but not spread. How do I set to do click on node name can also perform on/off the operation of the node. Thanks!

      Did not support the operation for richfaces4.0 ???

       

       

      <rich:tree var="node" id="objectTree" selection="#{cc.attrs.bean.selection}" selectionType="ajax" selectionChangeListener="#{cc.attrs.selectionListener}"  >
        <rich:treeModelRecursiveAdaptor roots="#{cc.attrs.bean.nodeList}" nodes="#{node.childNodes}">
         <rich:treeNode expanded="#{node.expanded}" iconCollapsed="#{node.iconCollapsed}" iconExpanded="#{node.iconExpanded}">
          <a4j:commandLink value="#{node}" actionListener="#{cc.attrs.bean.navigateBean.changActionlistener}" id="link"
          oncomplete="document.location.href='#{facesContext.externalContext.requestContextPath}#{cc.attrs.bean.naviUrl}?seqNo=#{cc.attrs.bean.navigateBean.seqNo}'"  immediate="true">
           <a4j:param name="objType" value="#{node.objType}"></a4j:param>
           <f:attribute name="obj" value="#{node.obj}"></f:attribute>
           <f:attribute name="currNode" value="#{node}"></f:attribute>
           <f:attribute name="currTree" value="#{cc.attrs.bean}"></f:attribute>
          </a4j:commandLink>
         </rich:treeNode>
         <rich:treeModelAdaptor nodes="#{node.leafNodes}">
          <rich:treeNode expanded="#{node.expanded}" iconLeaf="#{node.iconLeaf}">
           <a4j:commandLink value="#{node}" actionListener="#{cc.attrs.bean.navigateBean.changActionlistener}"
           oncomplete="location.href='#{facesContext.externalContext.requestContextPath}#{cc.attrs.bean.naviUrl}?seqNo=#{cc.attrs.bean.navigateBean.seqNo}'" immediate="true">
            <a4j:param name="objType" value="#{node.objType}"></a4j:param>
            <f:attribute name="obj" value="#{node.obj}"></f:attribute>
            <f:attribute name="currNode" value="#{node}"></f:attribute>
            <f:attribute name="currTree" value="#{cc.attrs.bean}"></f:attribute>
               </a4j:commandLink>
          </rich:treeNode>
         </rich:treeModelAdaptor>
        </rich:treeModelRecursiveAdaptor>
       </rich:tree>