Host page has this: Call JSNI JavaScript function from HTML where function implementation was written in Java. Click here: <a href='#' onClick='gwtJs2();'>here</ a>
In EntryPoint, I have this: public void onModuleLoad() { defineGwtJs2(); } /** * Define JS function in GWT that will be implemented by GWT Java */ public native void defineGwtJs2() /*-{ $wnd.gwtJs2 = th...@com.gwtdesign.interop.play.testui.interopplayentrypoint::callGwtJs2Implementation(); }-*/; public void callGwtJs2Implementation(){ Window.alert("Here was clicked"); } When I start in hosted mode and click the link, I see the following in the FireBug console: uncaught exception: java.lang.ClassCastException If I compile and move the html/js to tomcat, the alert pops up as expected. Is there a known issue around this? Or am I doing something that's not supported? Thanks, Eric -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.