I am trying to invoke a java method right from my JSNI function but for some reason it never works. What am I doing wrong here? :(
Here is my code
/**
For UI button click method...
*/
private native void test(String param)
/*-{
var a=(function b(p)
{
this.@com.(...).TestClass::setTest(Ljava/lang/String;)(p);
})(param);
}-*/
private void setTest(String param){Window.alert(param);}
All useful comments are appreciated