Thanks Vitali Lovich, i solved the problem. As Vitali lovich said I was calling function2 in a wrong way(I am new to gwt). If someone has the same problem this link explains JSNI. http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-gwt-part-1-jsni.html
On Apr 4, 8:55 am, Vitali Lovich <[email protected]> wrote: > You're callling it wrong. You still needs to call function2 using > JSNI because the GWT compiler will mangle the name of function2 but > won't realize that it needs to update the reference in the javascript > code you are writing. > > 2009/4/3 alberto <[email protected]>: > > > > > Hi > > > I have theese two native javascript functions: (just a simply example) > > > public native void function1( ) { > > alert( function2( ) ); > > } > > > public native int function2( ) { > > return 9; > > } > > > It seems that function1 can not see and invoke function2. > > Is that true? Is there a way to resolve that problem?? > > > Thank yuo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
