richfaces how to detect mouse position
How can I dete开发者_如何学Cct the mouse position on a "onclick" event in RichFaces? Thanks!
You can use the <rich:jQuery>
component.
<rich:jQuery selector="#myButtonId" query="click(function(event) {alert("Mouse Position: " + event.pageX + ", " + event.pageY );})" />
Regards.
精彩评论