2 Replies Latest reply on Oct 27, 2009 4:25 AM by gonzalad

    rich:tree removing tree icons

    gonzalad

      Hello,

      Is there a way to remove completely icon and iconLeaf images from the rich:tree ?

      I've tried defining empty icon and iconLeaf f:facet as indicated here (http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_tree.html), but it doesn't work.

      <rich:tree id="dTr"
       switchType="ajax"
       status="ajaxStatusMP">
       <f:facet name="icon">
       </f:facet>
       <f:facet name="iconLeaf">
       </f:facet>
       <rich:recursiveTreeNodesAdaptor includedRoot="true" roots="#{explorerAction.racine.children}" var="dos" nodes="#{dos.children}">
       <rich:treeNode id="dN">
       <h:outputText id="dNL" value="#{dos.name}" style="cursor:hand;" />
       </rich:treeNode>
       </rich:recursiveTreeNodesAdaptor>
      </rich:tree>
      


      I've also tried using inexistant image :
       <f:facet name="iconLeaf">
       <h:graphicImage value="/images/notexists.png"/>
       </f:facet>
      


      Works ok with firefox (so I could use a transparent image).
      But image size would be 16 px as specified per the documentation.

      Any ideas ?

      Thanks very much