Hello Forum,
I am using richfaces 3.1.4.GA
I want to use the oncontextmenu event in rich:datatable objects.
I took a look at the source, and found the small table in AbstractRowsRenderer.java. It looks like I can just switch the mapped event for "onRowMouseDown" to render an "oncontextmenu" instead of the normal "onmousedown".
I understand that this would make the normal usage of onRowMouseDown unavailable, but I am willing to live with this, as I am not using it. After my one-line change, the table looks like so:
public static final String[][] TABLE_EVENT_ATTRS = { {"onclick","onRowClick"}, {"ondblclick","onRowDblClick"}, {"onmousemove","onRowMouseMove"}, {"onmouseup","onRowMouseUp"}, {"oncontextmenu","onRowMouseDown"}, {"onmouseover","onRowMouseOver"}, {"onmouseout","onRowMouseOut"} };
Well.... I see that I should have really posted this to richfaces-development :(. I will resubmit it there....
PdP