Hi, all :
     I have a question, that is I have a Java method, it have two
methods, when I will to call it in JSNI, it have a compile error.

the java method:
    public static JavaScriptObject getModel(String id,String code) {
            JavaScriptObject o = new JavaScriptObject ();
            // any codes
            return o;
    }

the JSNI codes:
    public static native void registerCallback()/*-{
             $wnd.getModel=function(arg1,arg2){
                 return @com.example.client.MyWidget::getModel(Ljava/lang/
String;Ljava/lang/String;)(arg,"");
             };
         }-*/;

the compile errors:
      Expected a valid parameter type signature in JSNI method
reference
     [java]       [ERROR] Cannot proceed due to previous errors


Thanks a lot...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to