Dane, Thanks for your response. I have probably been thinking too rigidly about the presenter/view paradigm and concluding that presenter/view is 1) for the top level of the application only and 2) only 1 instantiation of a presenter/view at any one time.
Now I see that it can be as fragmented as you want it to be. I shall experiment... Thanks, Pete On 26 July, 17:23, "dane.molotok" <dane.molo...@gmail.com> wrote: > I have done exactly that for an application. There's no reason you > cannot have a view, with a corresponding presenter, that contains two > views that have their own presenters. You can even use UiBinder to put > those two views within the higher level view. So your DockLayoutPanel > might be your base widget for your higher level view, and you might > have MyWestView to the west and MyCenterView to the right. Then it's > just a matter of binding the presenters to the instances of the views > the higher level view references. > > On Jul 26, 11:02 am, PeteUK <newbar...@gmail.com> wrote: > > > Hi Tanguy, > > > Thanks for the reply. I had read the blog link you posted (and part > > II). > > > In the Contact application, the *entire* application area is initially > > taken up with the contacts list. When a contact is chosen for editing > > (or the Add button pressed), the *entire* area is replaced by the edit > > contact view. > > > I see the DockLayoutPanel as being different to this. Let's assume the > > Mail application was to be changed to be a bit more Outlook like. The > > change being a calendar option that could be chosen from the left hand > > side (where Mailboxes, Tasks, and Contacts are). When that calendar is > > chosen, you don't want the entire application area to be replaced, > > you'd just want the two split windows in the centre area to be > > replaced by a big calendar. > > > I am wondering how that would be orchestrated within the application? > > Would MVP be used here, and if so, how? > > > Thanks, > > > Pete > > > On 26 July, 14:59, Tanguy Le Barzic <tanguy.lebar...@gmail.com> wrote: > > > > Hi Pete, > > > > The Mail application from the samples doesn't follow the MVP pattern and > > > its > > > separation between views and presenters. I suggest you read the articles > > > from the blog about mvp > > > (http://code.google.com/webtoolkit/articles/mvp-architecture.html), which > > > include an example similar to Mail (a Contact application). Concerning > > > DockLayoutPanel, it would be part of the view in an application following > > > MVP (as it defines how your application will look like). > > > Hope this helps > > > > -- > > > Tanguy > > > > 2010/7/25 PeteUK <newbar...@gmail.com> > > > > > Hello, > > > > > I've been investigating GWT recently and want to start writing with > > > > it. This is my first question on here, so pardon my ignorance. > > > > > I had just got my head around presenters and views. I then tried out > > > > the Mail application that ships with 2.0.4 Eclipse plugin and this > > > > looks really good. Looking at the source code though, I cannot see any > > > > presenters or views and wonder if when using DockLayoutPanel (as the > > > > Mail application does), would one also use presenters and views? If > > > > so, how would they be used with the DockLayoutPanel? What portion of > > > > the DockViewPanel would a view represent? > > > > > Thanks, > > > > > Pete > > > > > -- > > > > 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<google-web-toolkit%2Bunsubs > > > > cr...@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-web-toolkit?hl=en. -- 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.