6

Could any of you guys give a good explanation of the MVP pattern with regards to use in a GWT application. any example i have viewed, i found it hard to understand the concept of implementing the pattern.

Questions such as what is it? what does it achieve, how is it implemented and how can it be extended for future modifications?

molleman
  • 2,934
  • 16
  • 61
  • 92
  • 1
    Look at this: http://www.ongwt.com/post/2009/08/16/GWT-MVP-(Model-View-Presenter)-Link-directory – Romain Hippeau Jun 08 '10 at 19:26
  • What, no direct link to Ray Ryan's talk on architecting GWT apps that started this whole MVP + GWT love? It's a must-watch. http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html – Igor Klimer Jun 09 '10 at 00:34
  • I give some explanation to my implementation of the pattern in this thread: http://stackoverflow.com/questions/2832779/is-there-a-recommended-way-to-use-the-observer-pattern-in-mvp-using-gwt/2832919#2832919 Maybe that could be of some help? – Mia Clarke Jul 07 '10 at 09:08

2 Answers2

2

The primary goal of the MVP pattern is to separate the controlling of your UI from the implementation of your UI. You can think of these two concerns as a splitting of the traditional "view" in MVC.

One of the key benefits is that your presenters should be completely testable without any reference to UI widgets, etc. For GWT, this is particularly valuable since tests that use GWTTestCase can be particularly slow.

dty
  • 18,795
  • 6
  • 56
  • 82
  • i was wondering if i could get a break down , in some ones point of view on each section of the MVP, including sample code as most examples , can be very meaningless,at least if we discuss it here, we can ensure the of the correct implmentation – molleman Jun 08 '10 at 21:33
  • The links already posted by others provide some pretty solid grounding, IMHO. – dty Jun 08 '10 at 21:45