This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes How do I define what a Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "How do I define what a "right click" will do on my website (eclipse, jsf and richfaces)" Watch "How do I define what a "right click" will do on my website (eclipse, jsf and richfaces)" New topic
Author

How do I define what a "right click" will do on my website (eclipse, jsf and richfaces)

Matt Kohanek
Village Idiot
Ranch Hand

Joined: Apr 04, 2009
Posts: 483

I need to define different menu options when a user right clicks on a certain area for a site I am creating.

Is this possible with richfaces or do I need to look into other components? Im not sure where to start


True wisdom is in knowing you know nothing - Socrates
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14487
    
    7

Right-click behavior is controlled by JavaScript in the client. Some of the RichFaces controls have defined right-click behaviors (such as right-click menus), some do not. The ones that do simply generate the necessary JavaScript code for you automatically.

It really depends on whether or not the control you're planning to define has built-in right-click support or not. If not, you may be able to attach your own JavaScript to it.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I define what a "right click" will do on my website (eclipse, jsf and richfaces)
 
Similar Threads
rich:tree working now... all the work has finally paid off - THANKS
Richfaces skins
ValueChangeListener question
mvn jetty:run-war - richfaces-demo.war
Problem in sorting data in Richface DataTable