Embedded GWT Widget not responding to Mouse Events -
i have gwt widget want embed in non-gwt application. using get-exporter expose api , have widget appearing in simple html page (which includes nocache.js) , drawing itself. not respond mouse clicks.
i attach widget div (objects exposed using get-exporter):
controller = new graphcontroller(makegraphconfig.makegraphconfig()); var element = controller.getgraphpanelelement() ; document.getelementbyid('graphpanelid').appendchild(element);
the element 'graph' simple div , direct kid of body element.
<div width="500" height="500" id="graphpaneid" style="border-style: solid; border-width: 11px; "></div>
the widget draws , not respond mouse events. missing here?
my solution pass elementid controller:
javascript:
controller = new graphcontroller("graphpanelid",makegraphconfig.makegraphconfig());
and utilize :
java:
rootpanel.get(elementid).add(graphpanel)
events gwt widget
No comments:
Post a Comment