I attempt to call a javascript method from another javascript method from java method
here is my code:
public void print(){
Excec();
}
native String flipName(String tst) /*-{
// ...implemented with JavaScript
alert(tst);
}-*/;
native String Excec() /*-{
alert("exe");
flipName("1");
alert("exe1");
}-*/;
when i run the application it show me an error :
Excec()([]): flipName is not defined
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)