Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Folder icon display at richfaces tree node

 
Elizabath Lima
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Regards,
Elizabath
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like all RichFaces components, pretty much everything is changable in the tags themselves. So for TreeNodes there is an attribute called "icon"

so

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

http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone/docs/tlddoc/index.html
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html_single/index.html

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

Mark
 
Elizabath Lima
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Can You please tell me how to render tree using richfaces
Thanks in advance
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic