First GWT question: DockLayoutPanel and presenter/views

2010-07-26 Thread PeteUK
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.

Re: First GWT question: DockLayoutPanel and presenter/views

2010-07-26 Thread Tanguy Le Barzic
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

Re: First GWT question: DockLayoutPanel and presenter/views

2010-07-26 Thread PeteUK
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

Re: First GWT question: DockLayoutPanel and presenter/views

2010-07-26 Thread dane.molotok
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

Re: First GWT question: DockLayoutPanel and presenter/views

2010-07-26 Thread PeteUK
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