MVP Pattern

82 views
Skip to first unread message

Alberto Jesús Rubio Sánchez

unread,
Nov 2, 2011, 2:03:24 AM11/2/11
to Google Web Toolkit
Hi,

I have recently started to develop with GWT in Eclipse and I want to
use the MVP pattern. I create a new module and select the option for
use MVP. Eclipse generates a lot of packages: activity, mvp, place,
ui, server.

Someone could tell me the use of each?

Regards,

Alberto J.

Thad

unread,
Nov 2, 2011, 3:08:44 PM11/2/11
to Google Web Toolkit
I recommend you read about activities and places at
http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html
There are some links to older MVP articles and examples there. Be
warned the new stuff--activities and place--is slightly altered from
the older examples, but both are helpful.

On Nov 2, 2:03 am, Alberto Jesús Rubio Sánchez <yeben...@gmail.com>
wrote:

Brandon Donnelson

unread,
Nov 3, 2011, 12:51:15 AM11/3/11
to google-we...@googlegroups.com
Here is a demo and source I put together:

There is another project in the sdk samples, called expenses demo. Its linked on the mvp pages and is great too.

Hope that helps,
Brandon Donnelson

Alberto Jesús Rubio Sánchez

unread,
Nov 3, 2011, 11:06:27 AM11/3/11
to Google Web Toolkit
Thanks for all,

I don't understand the differences between MVP with Activities and
Places and MVP without Activities and Places.

Can you explain me this?

Regards,

Alberto J.

Thomas Broyer

unread,
Nov 3, 2011, 1:16:21 PM11/3/11
to google-we...@googlegroups.com
There's no difference. Activities & Places are mostly about navigation. Many people make their activity their presenter. When you create an "MVP" project in Eclipse, it uses Activities & Places, and I believe the activities are "MVP presenters" (not sure, never tried it)

Christian Goudreau

unread,
Nov 3, 2011, 1:29:15 PM11/3/11
to google-we...@googlegroups.com
Well activities and presenter really look alike and the two denomination are confusing, but a hint is the presenter interface in Gwt tutorials that point to a presenter interface that Activities usually implements.

Cheers,

On Thu, Nov 3, 2011 at 1:16 PM, Thomas Broyer <t.br...@gmail.com> wrote:
There's no difference. Activities & Places are mostly about navigation. Many people make their activity their presenter. When you create an "MVP" project in Eclipse, it uses Activities & Places, and I believe the activities are "MVP presenters" (not sure, never tried it)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Vg0PqbYm_5YJ.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
Christian Goudreau

Alberto Jesús Rubio Sánchez

unread,
Nov 8, 2011, 2:35:37 PM11/8/11
to Google Web Toolkit
Thanks for all to response.

But which is the use of the places?

Regards,

Alberto J.

On 3 nov, 18:29, Christian Goudreau <goudreau.christ...@gmail.com>
wrote:

Thomas Broyer

unread,
Nov 8, 2011, 7:00:33 PM11/8/11
to google-we...@googlegroups.com
A place is like a "URL"; see  http://tbroyer.posterous.com/gwt-21-places (and follow-up articles about activities) for a more in-depth look.
Reply all
Reply to author
Forward
0 new messages