// Making this connection only when attached avoids memory-leak issues.
// The FormPanel cannot use the built-in GWT event-handling mechanism
// because there is no standard onLoad event on iframes that works
// across
// browsers.
FormPanel.getSupport().hookEvents(iframe, getElement(), new FormPanelImplHost() {
public boolean onFormSubmit() {
return FormPanel.this.onFormSubmit();
}