J'ai rencontré ce problème lorsque j'ai créé une fenêtre (Smartgwt) et que j'ai placé un DynamicForm (Smartgwt) dans cette fenêtre, Dans ce DynamicForm, j'ai un CanvasItem (Smartgwt) dans lequel je mets un RichTextArea (GWT). Et quand j'appuie sur "ESC", je peux quitter la fenêtre (Smartgwt) sans problème. Mais quand j'appuie sur "F5" pour rafraîchir mon application, le navigateur affiche une exception en disant "com.google.gwt.user.client.ui.AttachDetachException"
. Pour résoudre ce problème, je fais ce qui suit:Widget d'intégration (GWT) avec DynamicForm (Smartgwt) - com.google.gwt.user.client.ui.AttachDetachException
public class MailWindow extends Window {
public MailWindow(){
this.addCloseClickHandler(new CloseClickHandler() {
public void onCloseClick(CloseClientEvent event) {
form.getRichTextArea().removeFromParent();
MailWindow.this.destroy();
}
});
}
}
Qui a résolu mon problème! :)
Kewei
Merci Sanjiv Jivan! –