This content has been marked as final.
Show 2 replies
-
1. Re: How can i simulate click on richfaces tree node?
iabughosh Nov 28, 2012 7:01 AM (in response to thex)welcome to the communtiy Anton,
you can make treeNode performs an action :
...
<rich:treeNode onclick="performAction()"/>
...
<a4j:jsFunction name="performAction" action="#{yourBean.doAnAction}"/>
regards.
-
2. Re: How can i simulate click on richfaces tree node?
thex Nov 28, 2012 7:27 AM (in response to iabughosh)Thanks Ibrahim,
I found solution few minutes ago
var $el = $(selector);
var offset = $el.offset();
var event = $.extend( $.Event( "mousedown" ), {
which: 1,
pageX: offset.left,
pageY: offset.top
});
$el.trigger(event);