package com.test.workertest.shared;
import com.google.gwt.core.shared.GWT;
import jsinterop.annotations.*;
@JsType(namespace = "test", name = "JsOpClass")
public class JsOpClass
{
@JsMethod
public void printStuff()
{
GWT.log("asdfasdf");
}
}
com.google.gwt.event.shared.UmbrellaException: Exception caught: (ReferenceError) : testis not definedIs it only a JSNI substitute
(but even then I was not able to call it from a JSNI method).
--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/wpcpNJka5qo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
@com.test.workertest.shared.JsOpClass::new()() Note the ()() double parenthesis.
Do you want JsOpClass to be visible from both js and java?
To unsubscribe from this group and all its topics, 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 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+unsub...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--Vassilis Virvilis
--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/wpcpNJka5qo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Where do I use $wnd.test.JsOpClass()? It doesn't work within <script> tags inside the HMTL file of my GWT project.
The reason I'm looking at JsInterop was because we want to use web workers. And since there is no GWT implementation of web workers I would do this via native calls. And the web worker would only forward methods because once I'm in the worker thread I have to call GWT functions again.GWT Mainthread ---> Worker.js ---> GWT in a worker threadThe calls from Worker.js to GWT in the worker thread would also pass an instance of the worker itself into GWT (as JavaScriptObject) so I could call worker.postMessage to get back to the main thread.
--
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-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
There is one thing people keep on repeating:You can only invoke the exported class/method when the gwt app is loaded.
Is there a GWT supported default way that would allow this ?Otherwise I guess you would need to add a callback mechanism in the EntryPoint (Using JsInterop)