Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mouse click on richfaces:tree

 
Frank Truong
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

Does someone know where I can get some reading materials about richfaces:tree component detecting the mouseclick event on its nodes?
I have spent sometime searching but haven't found one yet.

Thank you very much.
Frank
 
Vaibhav Mittal
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might find this link of some use. All the tag information is explained clearly along with the demo. Go to the trees section from the menu. Here is the demo link
 
Frank Truong
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I still puzzled to find the way to make my richfaces' tree behave like a traditional tree of filesystem - right-clicking on the treenode would bring up a pop-up menu containing some desired actions.

I think I need to find out how to pass in an MouseEvent object; so I can detect whether it is a right-click event. Then, my next task is to find out how to create a popup menu in richfaces.

Please advise!

Thank you, all.
Frank
 
Sitrarasu Jayaraman
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I guess you are asking for context-menu., let me guess, you want some menu to be displayed when you right click on a tree node right?
if that is the case then look for context menu in richfaces.,

Richfaces Context Menu

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic