Context Menu Rich:data Table

Version 1


    I am using rich:faces 4.3.0 and i want to integrate the rich:contextmenu to the simple rich:datatable on row right click action. I have written custom javascript to handle right click.


    As soon as i write the code for the context menu and i put target a rich:datatable the context menu appears by default when i do right click on every point to that table (thead,tbody,tfoot) and not to a single row. How can i integrate rich:contextmenu with rich:datatable row right click (even if row right click action is handled with customjavascript)


    Thank you in advance,