title: JSNI - invoke Java method from JS function
body: <p>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? :(</p>
  
  <p>Here is my code</p>
  
  <pre><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);}
  </code></pre>
  
  <p>All useful comments are appreciated</p>