I try to implement the best practices discussed in the article "Large scale application development and MVP". My application is designed using several widgets: MainContainerWidget: a DockLayoutPanel NorthWidget: a widget in the north region of the main container CenterWidget: a widget in the center region of the main container. This widget is a composite of two widget (TopWidget and BottomWidget) SouthWidget: a widget in the south region of the main container.
1/ I created a Presenter for each widget. The CenterPresenter contains a TopPresenter and a BottomPresenter that are instanciated in the constructor of CenterPresenter. public CenterPresenter(HandlerManager eventBus, Display display) { this.eventBus = eventBus; this.display = display; topPresenter = new TopPresenter(eventBus, new TopWidget()); bottomPresenter = new BottomPresenter(eventBus, new BottomWidget()); } @Override public void go(HasWidgets container) { bind(); container.clear(); container.add(display.asWidget()); } private void bind() { topPresenter.bind(); bottomPresenter.bind(); } So basically when the CenterPresenter is created in the AppController class, it would create all its child presenters and call the bind methods. Does it seem a good approach or is there a better way? -- 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.