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

    rich:tree removing tree icons

    gonzalad Apprentice


      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"
       <f:facet name="icon">
       <f:facet name="iconLeaf">
       <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;" />

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

      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