I have an anchor element with an onClick="showAlert();"

in my java file, I have a JSNI function

    public static native void showAlert() /*-{
        alert('Hello');
        }-*/;

I never see this alert. In fact, when I look at the browser console, I
see that showAlert could not be found. What am I missing here ?

-- 
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