I have a GWTP MyPresenter that registers a handler at onBind(), and it works perfectly. The problem is when I leave the presenter using the BACK arrow on the browser. The onUnbind() is never called (I tried with an breakpoint overriding the method, but is never executed). So that this handler is never unregistered. What is wrong? Thanks.
public class MyPresenter extends
PresenterWidget<ViewDiagramPresenter.MyView> {
[...]
@Override
protected void onBind() {
super.onBind();
registerHandler(getEventBus().addHandler(myEvent.getType(), myHandler));
}
}
See Question&Answers more detail:os