File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Mouse click on richfaces:tree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Mouse click on richfaces:tree" Watch "Mouse click on richfaces:tree" New topic

Mouse click on richfaces:tree

Frank Truong
Ranch Hand

Joined: Nov 19, 2002
Posts: 39
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.
Vaibhav Mittal

Joined: Jun 11, 2008
Posts: 23
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

"Life is good"
Frank Truong
Ranch Hand

Joined: Nov 19, 2002
Posts: 39

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.
Sitrarasu Jayaraman

Joined: Feb 06, 2011
Posts: 7

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

I agree. Here's the link:
subject: Mouse click on richfaces:tree
It's not a secret anymore!