Monday, October 26, 2015

Re: JsInterop: Casting native javascript objects in gwt

I am using GWT 2.8.0-SNAPSHOT, but the new annotations does not work for me.

I tried using @JsType(namespace = "acme", name = "MyJavaScriptObject"), as described in the new version of the JsInterop document, but apparently the namespace and name attributes are not there in the jar file.
Same thing with the @JsExport and @JsNamespace, I currently have to use them or things stop working.

The new annotations have a different package: jsinterop.annotations. Also @JsExport does not exist anymore in the new JsInterop version, you just use @JsType.

To activate the new annotations you also have to change the JsInterop mode via -jsInteropMode JS_RC

-- J.

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment