If someone is interested, I solved this by injecting my child view both into their respective presenters, aswell as into the parent view, like so:
CouponWidget couponWidget = new CouponWidget(); GameStatsWidget gameStatsWidget = new GameStatsWidget(); CouponPresenter coupon = new CouponPresenter(rpcService, eventBus, couponWidget); GameStatsPresenter gameStats = new GameStatsPresenter (rpcService, eventBus, gameStatsWidget); presenter = new MainPresenter(rpcService, eventBus, coupon, gameStats, new MainPanel(couponWidget,gameStatsWidget)); Coupon and Gamestats are child widgets here, they are injected into their presenters as usual. MainPresenter is the presenter responsible for the parent view, MainPanel. Beside this, I pretty much used code similar to the one suggested by jarrod above. On 26 Jan, 16:46, Dalla <dalla_man...@hotmail.com> wrote: > To clarify what I´m looking for, let´s assume that I´m working with > GooglesMVPContacts example. > > Instead of having EditContactView and ContactsView as completly > separate views, I want to add them to a DockLayoutPanel, > showing both views at the same time. > Let´s assume that I want to put the ContactsView in the center panel, > and the EditContactView in the south panel. > > I guess I would do this by creating a third view, called e.g. MainView > (and MainPresenter), > and then putting my existing views in this third view? But I´m still > confused as to how I would set this up, > or if creating a third view would even be the correct approach. > > Please advice :-) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.