When you export a class or a method with gwtexporter, it is available in the main window object, for instance:
@ExportPackage("mypackage")
@Export("myclass")
class AClass implements Exportable {
@Export("method")
public String aMethod() {
return "hello"
}
}
var c = new mypackage.myclass();
alert(c.method());
So if you have created an iframe, and the iframe content comes from the same domain (otherwise it is no possible due to security reasons), you should be able to access to parent methods:
var c = new parent.window.mypackage.myclass();
alert(c.method());
- Manuel Carrasco Moñino