Tuesday, February 25, 2014

Re: GWT and SVG, the 125th... :-)

Hi,

including a script tag in the module xml did not work for me:

The Cross-Site-Iframe linker does not support <script> tags in the gwt.xml files

Using ClientBundle works.

However, what is still missing is the connection between the JS objects and the GWT widgets.
Consider the initial example:
var draw = SVG('drawing').size(300, 300)
var rect = draw.rect(100, 100).attr({ fill: '#f06' })
I can execute this code. But how can I place the drawing it creates into a GWT widget, e. g. a FlowPanel?

FlowPanel p = new FlowPanel ();
myClientBundle.executeJSCode();
p.add(???); // how to connect it???
 

Thanks
Magnus

--
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