Hello,
I've implemented a componentControl and a contextMenu in a DataTable. On (right) mouse click a context menu should appear over the row and a select menu appears which offers view or edit details of the row.
All is working, but only for the left mouse click. When I use the right mouse button the id field currentIncidentId
of the handler bean incidentHandler
is not filled.
How can I adjust the same action to the right mouse button?
Thx for your help
Ben
<rich:componentControl event="onRowClick" for="menu"
operation="show">
<f:param name="incidentIdIncident" value="#{_incident.idIncident}" />
</rich:componentControl><rich:contextMenu attached="true" id="menu" submitMode="ajax">
<rich:menuItem ajaxSingle="true" event="oncontextmenu">
<a:commandLink id="incidentEdit"
action="#{incidentHandler.editIncident()}"
value="#{messages.text_incidentedit}">
<a:actionparam name="currentIncidentId"
assignTo="#{incidentHandler.currentIncidentId}"
value="{incidentIdIncident}" />
</a:commandLink>
</rich:menuItem>
<rich:menuItem ajaxSingle="true">
<a:commandLink id="incidentView"
action="#{incidentHandler.viewIncident()}"
value="#{messages.text_incidentview}">
<a:actionparam name="currentIncidentId"
assignTo="#{incidentHandler.currentIncidentId}"
value="{incidentIdIncident}" />
</a:commandLink>
</rich:menuItem>
</rich:contextMenu>