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.
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
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
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
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