What steps will reproduce the problem?
1. Create a parent presenter with injected popup presenter like:
public class ParentPresenter extends Presenter<ParentPresenter .MyView,
ParentPresenter.MyProxy>...
@Inject
public ParentPresenter(final EventBus eventBus, final MyView view, final MyProxy proxy, final PopupPresenter popupPresenter) {
super(eventBus, view, proxy);
this.popupPresenter = popupPresenter;
}
@Override
protected void onBind(){
customerPopupPresenter.getView().setCloseHandler(new PopupViewCloseHandler() {
public void onClose() {
//do something here(its not called)
}
});
2. Create PopupPresenterWidget like:
public class PopupChildPresenter extends
PresenterWidget<PopupChildPresenter.MyView>...
public interface MyView extends PopupView, Editor<Customer>...
3. Create PopupView like:
public class PopupChildView extends PopupViewImpl implements
PopupChildPresenter.MyView
PopupView has widget with UIBinder:
private final PopupPanel widget;
and ui.xml has <g:DialogBox modal="true" glassEnabled="true"
animationEnabled="true">
4. call addToPopupSlot(popupPresenter); on click event in parent presenter
What is the expected output? What do you see instead?
onClose() event of popupView Handler should be called but it isn't. Instead the
event is called when the popup is openend with addToPopupSlot
What version of the product are you using? On what operating system?
0.6, Windows 7
Please provide any additional information below.
Original issue reported on code.google.com by mark.van...@gmail.com on 17 Aug 2011 at 5:55
Original issue reported on code.google.com by
mark.van...@gmail.com
on 17 Aug 2011 at 5:55