As Thomas says, it depends. But, I think that for many cases where you have a UI element that isn't too complex and doesn't really allow much user interaction (or have mutable state), it makes sense just pass an event bus to the widget and have it fire events for actions a presenter higher up might care about. MVP is great, but it's also coupling and additional boilerplate, though events and hanlders also require boilerplate. But, you also get some help, eg the event bus passed to Abstract#start() removes handlers automatically.
Jesse On Thu, Feb 21, 2013 at 3:54 AM, Thomas Broyer <[email protected]> wrote: > As in many cases, I'd say that “it depends”. Would there be a value in > using MVP for the "tile"? assuming a yes, would there be a value exposing > the use of MVP to the *user* of the tile? (for instance CellTable and > friends use MVP, but it's an implementation detail; from the outside > they're just widgets like any other). > If you go the MVP route, have a look at > http://www.google.com/events/io/2010/sessions/gwt-continuous-build-testing.html; > it explains how Apache (ex-Google) Wave uses MVP all the way down (down to > the level of buttons!) > > > On Thursday, February 21, 2013 3:18:55 AM UTC+1, MAQ wrote: >> >> Hi, >> >> I'm starting to get more confused as I'm going deeper with MVP. In my >> project I have a view which has many video 'tiles' (thumbnails with >> headlines). Should I make each tile a view by its own, and each one of >> these views would have its own presenter? >> >> Is that a normal solution or am I doing a horrible thing? >> > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
