Monday, May 31, 2010

JSNI Methode call does not work...


I've the following Class:

public class Designer {
private final native JavaScriptObject addNode() /*-{
alert("Pre JSNI call");

lang/String;Ljava/lang/Integer;Ljava/lang/Integer;)("TEST", 100, 100);
alert("Post JSNI call");

void sendNode(String id, String x, String y) {
GWT.log("sendNode() called");


When addNode is called, "Pre JSNI Call"-Alert is shown. After the
click on "OK", an JS-Error is thrown:

Details zum Fehler auf der Webseite

Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Zeitstempel: Mon, 31 May 2010 20:52:56 UTC

Meldung: Annahme ausgelöst und nicht aufgefangen.
Zeile: 36
Zeichen: 7
Code: 0
URI: http://localhost:8080/desk/desk/hosted.html?desk

Any ideas what I'm doing wrong?

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment