I want to develop a GWT javascript application that must interact with a flex widget and fire events from 2 directions (flex to GWT and GWT to flex)
For example I develop a function in GWT called onWidgetSelected(int widgetID){ ...} the generated javascript code does not contain the name of this function. So If I want to invoke it from flex through javascript call what should I do ?
I want to develop a GWT javascript application that must interact with a flex
Share
@cwallenpoole correctly showed you how to call JS from Flex. But since GWT produces obfuscated JS, you will not be able to call GWT Java methods by their native names.
In order to make this work, you will need to “export” the method as described here: http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#calling