Discussion:
jsInterop cast to JavaScriptObject
Marcio Alves
2016-09-16 18:47:09 UTC
Permalink
Hi,

Is it possible to casto a jsInterop object to a JavaScriptObject?

I am trying to use GWT-Polymer's IronList, but it requires a
JsArray<JavaScriptObject>.

I managed to create my JsArray from a JSNI code, but I don't know how to
create it in Java, since the class do not extends from JavaScriptObject.

Thanks,
Marcio Alves
--
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 google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Pablo Nussembaum
2016-09-19 16:07:50 UTC
Permalink
Hi Marcio,
You can check: https://github.com/GWTReact/gwt-interop-utils that several helper to convert java to js and back.
Regards,
--
Bauna
Post by Marcio Alves
Hi,
Is it possible to casto a jsInterop object to a JavaScriptObject?
I am trying to use GWT-Polymer's IronList, but it requires a JsArray<JavaScriptObject>.
I managed to create my JsArray from a JSNI code, but I don't know how to create it in Java, since the class do not extends from JavaScriptObject.
Thanks,
Marcio Alves
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
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 google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Marcio Alves
2016-09-19 17:12:14 UTC
Permalink
Thanks!
Post by Pablo Nussembaum
Hi Marcio,
You can check: https://github.com/GWTReact/gwt-interop-utils that several
helper to convert java to js and back.
Regards,
--
Bauna
Hi,
Is it possible to casto a jsInterop object to a JavaScriptObject?
I am trying to use GWT-Polymer's IronList, but it requires a JsArray<JavaScriptObject>.
I managed to create my JsArray from a JSNI code, but I don't know how
to create it in Java, since the class do not extends from JavaScriptObject.
Thanks,
Marcio Alves
--
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
<javascript:>.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
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 google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Loading...