-
1. Re: onRowContextMenu - highlight row and show ContextMenu
ilya_shaikovsky Nov 29, 2010 3:39 AM (in response to suckerd)use onRowContextMenu="#{rich:component('ctxmenu')}.show(); someApiCallToHighlightRow();".
-
2. Re: onRowContextMenu - highlight row and show ContextMenu
suckerd Nov 30, 2010 1:23 PM (in response to ilya_shaikovsky)Dear Ilya Shaikovsky,
thanks a lot for your answer - however I would like to call this and highlight the row:
<rich:componentControl event="onRowContextMenu" for="ctxmenu" operation="show" disableDefault="true">
<f:param value="#{item.id}" name="id"/>
<f:param value="#{item.dokumentKlasse}" name="docclass"/>
<f:param value="#{item.type == 'SELECTED' ? 'entfernen' : 'setzen'}" name="select_deselect"/>
<f:param value="#{item.annotated == true ? '' : 'display: none;'}" name="annotated_style"/>
</rich:componentControl>Please advise,
Thanks a lot in advance!
CU Mike
-
3. Re: onRowContextMenu - highlight row and show ContextMenu
suckerd Dec 28, 2010 3:18 AM (in response to suckerd)Mhh could please anyone provide a suggestion?
THX Mike
-
4. Re: onRowContextMenu - highlight row and show ContextMenu
suckerd Jan 24, 2011 3:25 AM (in response to suckerd)No one? Any suggestions please!!!
THX Mike
-
5. Re: onRowContextMenu - highlight row and show ContextMenu
ilya40umov Jan 24, 2011 4:17 AM (in response to suckerd)Look at this, it may help you:
-
6. Re: onRowContextMenu - highlight row and show ContextMenu
suckerd Jan 24, 2011 6:14 AM (in response to ilya40umov)Perfect - thanks a lot this was the "missing piece"
Now the only problem is how/when to unset the highlighting... (e.g. when contextmenu is hidden again)
-
7. Re: onRowContextMenu - highlight row and show ContextMenu
ilya40umov Jan 24, 2011 6:22 AM (in response to suckerd)I think this can help:
oncollapse false false javax.el.ValueExpression
(must evaluate tojava.lang.String
)The client-side script method to be called before the menu is collapsed onexpand false false javax.el.ValueExpression
(must evaluate tojava.lang.String
)The client-side script method to be called before the menu is expanded I got it from:
http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_contextMenu.html