Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 3 weeks ago
How to make use of Javascript Overlay types of GWT in Vaadin
Hi,
I am trying to use to the GWT Javascript Overlay types in my Vaadin project. I created a class called EventData:
public class EventData extends JavaScriptObject {
protected EventData() { }
public final native String getAction() /*-{ return this.action; }-*/;
}
Now in one of my client side counterpart of a Vaadin component, I have written a native JS method, inside of which I want to cast the object coming from Javascript into this overlay type. But I am not sure how to include it in my project. Can you pl. help?
Last updated on
You can include external javascript libraries with defining a script tag in module xml (MyCustomWidgetset.gwt.xml).
<script src="_js-url_"/>
Last updated on Jan, 24th 2012
You cannot reply to this thread.