-
1. Re: Right-click ContextMenu on a dataTable row
sergeysmirnov May 9, 2008 12:43 PM (in response to powerhouse_b)The second example demonstrates that you can attach the context menu not only to right mouse click (oncontextmenu), but on any other event like onRowClick. Also, the second example shown that you can share and parametrize the same instance of the context menu.
It is possible to use contextMenu without componentControl, but the even you try to attach to should be supported by the component.
So, what the code snippet that is suppose to work from your point of view? -
2. Re: Right-click ContextMenu on a dataTable row
powerhouse_b May 14, 2008 3:18 AM (in response to powerhouse_b)Using componentControl, the fallowing code does not work (for me) with "oncontextmenu" event.
<rich:contextMenu id="menu" attached="false" submitMode="ajax" > <rich:menuItem style="text-align: left;"> <b>URL</b> {url} </rich:menuItem> <rich:menuItem value="#{messages.wslistmenu_availability}" style="text-align: left;"/> </rich:contextMenu>
and inside a datatable<rich:componentControl event="oncontextmenu" for="bodyform:menu" operation="show" rendered="#{Authentificator.authentificated}"> <f:param name="url" value="#{webservice.url}"/> </rich:componentControl>
I am using Rihchfaces 3.2.0 RC1. -
3. Re: Right-click ContextMenu on a dataTable row
ilya_shaikovsky May 14, 2008 4:56 AM (in response to powerhouse_b)already in a roadmap - http://jira.jboss.com/jira/browse/RF-2170
-
4. Re: Right-click ContextMenu on a dataTable row
moldovan Sep 22, 2008 11:37 AM (in response to powerhouse_b)Any update on this topic with the attribute onRowContextMenu?
JIRA-Entry is open since February, but nothing is done until now....
Does this topic has to few votes?
Actual, I've attached contextMenu via componentControl on onRowClick-event to dataTable.
But in my situation, it would be better (I don't wanna say: it is essential) if the contextMenu shows on right click.
Regards