public class MyClass extends Widget {
publicMyClass() { declareMethod(this); } //Method which declares non-static method in javascript public native void declareMethod(MyClassthis) /*-{ var _this = this; $wnd.doSomething = function(someString) { _this.@com.example.MyClass::doSomething(Ljava/lang/String;)(someString); } }-*/; }
Within the javascript code I call
window.doSomething("hello");
This works fine when I compile the code and start the generated code.
But works not when I try this in development mode against the plugin within the browser.
Any ideas or similar experience ?
I´m running eclipse Juno with GWT 2.5.1
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
No comments:
Post a Comment