views:

28

answers:

1

Hi! How can I detect the mouse position on a "onclick" event in RichFaces? Thanks!

+2  A: 

You can use the <rich:jQuery> component.

<rich:jQuery selector="#myButtonId" query="click(function(event) {alert("Mouse Position: " + event.pageX + ", " + event.pageY );})" />

Regards.

StudiousJoseph

related questions