This content has been marked as final.
Show 3 replies
-
1. Re: Unable to get right click menu on datatable to pass para
maksimkaszynski Jan 4, 2008 5:54 AM (in response to mfinkenzeller)You need to put component control inside columns of the table
-
2. Re: Unable to get right click menu on datatable to pass para
maksimkaszynski Jan 4, 2008 5:58 AM (in response to mfinkenzeller)when in attached mode, componentCtrl writes some javascript. In dataTable, the only place when it can do it column
-
3. Re: Unable to get right click menu on datatable to pass para
mfinkenzeller Jan 4, 2008 12:12 PM (in response to mfinkenzeller)If I add it into the column it still does not pass the arguments correctly. The menu appears.
So, in this case when I click on the menu item it fails to call the onclick function since activeRow is still set correctly. Thanks
<rich:menuItem ajaxSingle="true" disabled="{activeRowDisabled}" onclick="javascript:selectActiveRow({activeRow});"
actionListener="#{tableEditor.cutRow}" value="Cut">
<f:facet name="icon">
<h:graphicImage value="images/icons/cut_red.png"/>
</f:facet>
</rich:menuItem>