0 Replies Latest reply on Jan 31, 2011 11:45 AM by roy33 k

    How to dispaly Richfaces tree with node which contain a file and another node?

    roy33 k Newbie
      I have implemented a simple rich faces tree with seam it is working it is working the following is the code.
      `
      <h:form>   
              <h:panelGrid columns="2" width="100%" columnClasses="col1,col2"> 
               
                  <rich:tree style="width:300px" nodeSelectListener="#{simpleTreeBean.processSelection}"  
                      reRender="selectedNode"   
                       binding="#{simpleTreeBean.sampleTreeBinding}" 
                       
                      value="#{simpleTreeBean.treeNode}" var="item" ajaxKeys="#{null}"> 
                  </rich:tree> 
                   
                  <h:outputText escape="false" value="Selected Node: #{simpleTreeBean.nodeTitle}" id="selectedNode" /> 
               
              </h:panelGrid> 

          </h:form>
      `


      But I have to diplay a folder which contains another folder and file. What changes I have to make to the code?

      folder A -
               | Folder B -file B.1
               | file A.1
               | file A.2