I've been banging my head on this all day... i have a JSNI native
method defined in my main EntryPoint class:
/**
* This is the entry point method.
*/
public void onModuleLoad() {
RootPanel.get().add(new HTML("<h1 onclick=\"return clickTest();
\">TEST</h1>"));
}
public native void clickTest() /*-{
$wnd.alert("OK");
}-*/;
The page renders the TEST h1 HTML with the javascript onclick call but
when i try to click on it, nothing happens... when i compile/browse
and view in Firefox with firebug, firebug reports "clickTest is not
defined". I don't see the method defined anywhere in the generated
code.
Any ideas ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---