wood burning stoves 2.0*
The moose likes JSF and the fly likes Folder icon display at richfaces tree node Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Folder icon display at richfaces tree node" Watch "Folder icon display at richfaces tree node" New topic

Folder icon display at richfaces tree node

Elizabath Lima
Ranch Hand

Joined: Nov 23, 2005
Posts: 32
Hello All,

I would like to use richfaces tree structure. I could render the tree too.
But the issue with that is the folder icon display at each tree node.
For some reason i don't want the folder icon at the tree node.
Is there anyway to get rid of that?
I tried to change the image (iconFolder.gif) to some 1X1 pixel image in the richfaces jar file.
But when i added the new jar with new image for icon, that image is not loading.
I'm using Jboss4.2 as my application server.

Please help me to remove the folder display at tree node.

Thanks in advance.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

Like all RichFaces components, pretty much everything is changable in the tags themselves. So for TreeNodes there is an attribute called "icon"


<rf:treeNode icon="myNotAFolder.jpg">


Are two doc pages to bookmark, I have them bookmarked myself.


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Elizabath Lima
Ranch Hand

Joined: Nov 23, 2005
Posts: 32
Hi Mark,

Thanks for the reply.
But i was heading to another intention.
Actually i don't need any images at the treenode. Also i wanted to change the navigation icons ( the ones with > and downward arrow) images. I like to have the tree2 of tomahawk node image. For that only i started changing the images in the richfaces jar file.
I couldn't find the source file for the icon display also the image changes are not affecting my display.

Please suggest me a way to get thru..
Hemanth Bob

Joined: Dec 10, 2007
Posts: 1
Hi, Can You please tell me how to render tree using richfaces
Thanks in advance
I agree. Here's the link: http://aspose.com/file-tools
subject: Folder icon display at richfaces tree node
Similar Threads
Drag & Drop images
Mouse click on richfaces:tree
Image inside jar file
JTable Cell Rendere Not showing Icons properly
JTree image node