0 Replies Latest reply on Aug 22, 2007 7:27 AM by viggo.navarsete

    Change default icon in tree

    viggo.navarsete

      Hi,

      how do you use the icon attribute at the treeNode? I have images (as png) in a directory resources web/resources/images/*.png. How do I replace the default icons used in the tree with my own? Is it ok to only refer to the name of the image in the icon attribute, like this:

      <r:treeNode icon="myIcon.png" type="entityNode">


      or do I have to do a lookup in my backing bean somehow?
      <r:treeNode icon="#{myBackingBean.treeIcon}" type="entityNode">


      or something completely different?

      Thanks in advance :)