On Thursday, April 7, 2011 5:39:35 PM UTC+2, David Chandler (Google) wrote:

Ray Ryan's famous I/O talk in 09 also mentioned place/history management and 
> the Command pattern, which are very useful ideas but not part of MVP proper. 
> Various 3rd party MVP frameworks offered all these capabilities together as 
> "MVP" and the GWT docs refer to Activities and Places as the MVP framework, 
> but they're really not MVP proper, which has no doubt led to some 
> confusion. 
>

Thats why I would change the GWT docs as soon as time allows. Someone new to 
MVP and activity/places will definitely get the wrong idea of both and gets 
confused. There are many topics/posts like this one in this group.

@Alex: As David points out, the MVP pattern has nothing in common with GWT's 
Place/History management framework (often referred to as GWT MVP). If you 
use GWT places/activities your app will gain bookmarkable urls that 
represent a place/application state and whenever such a url is visited a 
corresponding activity will be started. This activity is then responsible 
for attaching some UI/widgets to an area of your webpage. If this UI is 
complex and has user interaction elements then you could implement this UI 
with the MVP pattern to separate the UI from the logic that will be 
performed when the user interacts with this UI. And once you decide to use 
the MVP pattern then its in most cases easier to let the activity be the 
presenter. But its also possible to implement a separate presenter and let 
the activity hold a reference to it.

J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to