Thanks for your thoughts, Nicolas. I believe the reason we've not
created View and Presenter interfaces to date is because there are two
different styles of MVP widely in use, only one of which allows the
view to call the presenter as in your example. Which leaves us in the
funny position that the new MVP framework is missing *formal*
definitions of View and Presenter. Personally, I think it's a good
thing that GWT Activities and Places are independent of views and
presenters so as not to force you into one model. I think View and
Presenter as you've described would fall in the category of things
that are not quite core code, but are nevertheless useful abstractions
that probably need a home in the GWT source somewhere for reference.
We'll chew on this a bit for 2.1.1...

/dmc

On Wed, Nov 3, 2010 at 8:06 PM, Nicolas Antoniazzi
<[email protected]> wrote:
>> Thanks for your comments. Do you mind sharing with us what would go in
>>
>> the Presenter interface to allow you to "fully use" MVP? We're very
>>
>> much open to ideas from the community as to how to make it work
>>
>> better.
>
> Well, in my opinion, it would be clearer to create 2 new interfaces :
> 1) a "Presenter" interface that contains
> - start(ForIsWidget container)
> - onStop()
> then, Activity interface could extends Presenter and add mayStop()...
> It would clarify that we can insert nested presenter into activity without
> adding activity into activity since it is not really the same concept in my
> opinion.
> 2) Then, create an interface called "View<T extends Presenter>" that
> contains
> - setPresenter(T presenter)
> they could be implemented by Composite or UiObject.
> Maybe that it sounds a bit unecessary to you, but I think that it would
> clarify things between Activities and Presenter/View just with those 2 new
> interfaces.
>>
>> Activities are more tied to the concept of Places than of MVP, i.e.
>>
>> navigation and user experience rather than code structure ("developer
>>
>> experience"). Does that make things clearer?
>
> Yes, it is clearer. Thanks Thomas.
> Thanks for all your great work on GWT.
> Nicolas.
>
> --
> 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.
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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