You basically create a GWT widget based on a div element. Once that widget is create you call your js code. Have a look at the onAttach method in the link I showed early on.
So you call call myClientBundle.executeJSCode() inside the onAttach method of your widget.
Hope that helps
2014-02-26 10:32 GMT+01:00 Magnus <alpineblaster@gmail.com>:
On Wednesday, February 26, 2014 8:52:32 AM UTC+1, Alain wrote:One solution could be to create a GWT widget based on a DIV element and call the JSNI in the onLoad method.I did something similar with a Google Map widget.Hello Alain,thank you!I understand that there is some DOM environment (e. g. a div) and that the JS code produces some other DOM content. And the goal is to inject the produced DOM content into the right DOM environment.But I still cannot adapt this to my minimal example:FlowPanel p = new FlowPanel ();myClientBundle.executeJSCode();Where is the result of executeJSCode and how can I move it right into my panel p?ThanksMagnus--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment