Monday, May 31, 2010

Calling Methode using JSNI failed


I've the following class:

package de.test;
public class Designer {

public native void addNode() {
alert("Pre JSNI");
alert("Post JSNI");

void sendNode(String id, Integer x) {
GWT.log("It Works!");


If addNode() is called, the first Alert is shown. Then, the following
JS-Error occurs (IE8):

Details zum Fehler auf der Webseite
Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Zeitstempel: Mon, 31 May 2010 21:15:12 UTC
Meldung: Das Objekt unterstützt diese Eigenschaft oder Methode nicht.
Zeile: 11460
Zeichen: 7
Code: 0
URI: http://localhost:8080/test/test/DDB7CB660FDE7BAFEE5000321CF27CD1.cache.html

Any ideas what I'm doing wrong?

Thank you!

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