First, 'int' is not java.lang.Integer, so your method signature in JSNI is 
wrong; it should read javaMethod(II).
(I suppose the "@p::" while javaMethod is defined in class A is 
over-simplification in your message, but is OK in your code)

You'll also probably a problem with "this", that might not be what you 
think it is. A common pattern is to assign the current object ("this" at 
the time) to a variable that you'll reference from your closure:

var that = this;
...
function OnMouseMove(e) {
   [email protected]::javaMethod(II)(intVal, intVal);
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/YqjOu-bUfsAJ.
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