• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Matt Kohanek
Village Idiot
Ranch Hand
Posts: 484
Java jQuery Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!