1

How can I add more then one event to the jsf tag graphicImage? I would like to distinguish between left-mouse, right-mouse and double-click. The idea was to do something as follows:

<h:graphicImage value="/image.jpg" onclick="doClick()" ondblclick="doDblClick()"/>
chrizan
  • 71
  • 1
  • 3

1 Answers1

1

I'am suggesting use jquery in similar way as it is shown in this answer. This can help you recognize which mouse button was pressed and then call concrete function.

Community
  • 1
  • 1
Kariton
  • 225
  • 7
  • 16