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