Thank you. It worked.
On Sunday, August 28, 2016 at 5:24:41 AM UTC+5:30, Jens wrote:
>
> Your method is static but your are using "this.@" in your JSNI code which
> will not point to TestProj. If you want to keep it static then you have to
> provide a TestProj instance as second parameter and ca
Your method is static but your are using "this.@" in your JSNI code which
will not point to TestProj. If you want to keep it static then you have to
provide a TestProj instance as second parameter and call
"testProjParam.@". Otherwise just make it an instance method by
removing "static".
-
This is my JSNI code where I need to call the onFlip() method in the JSNI
code
public static native void copyFrom(String s) /*-{
this.@com.dhinakar.TestProj::onFlip(Ljava/lang/String;)(s);
}-*/;
private void onFlip(String flippedName) {
Window.alert(flippedName);
}
I am facin