Hi, We implemented nested VP in our app.
The inner presenter has an interface that the outer can talk to. Only presenter talk each other, never views. Views are just the responsability of the associated presenter. 2010/11/11 zixzigma <[email protected]> > Hello Everyone, > > Problem: a View and its Presenter want to communicate with another > View/Presenter. > Special Case: one view is nested in another. > > background: > to implement MVP for "one view and it's presenter" > we would need a View Interface, a View Implementation which is > associated with a UiBinder, also a Presenter. Presenter uses View > Interface's inner Interface, to communicate with ViewImplementation. > (FooVIew, FooViewImpl, FooPresenter, ... ) > > this i understand. > > now lets say we have another View/Presenter (BarView, BarViewImpl, > BarPresenter) > > how can these two sets: Foo and Bar, communicate ? > i think its best for them to communicate through interfaces, > but i dont know who should be in control. > > and in scenarios that these two sets (Foo and Bar) are having "has a" > relationship, should the interfaces talk ? > > #1 > FooViewImpl { > > private BarView barView; > > } > > #2 FooViewImpl{ > private BarPresenter barPresenter; > } > > is it better if Views are Nested, or one presenter inside the other > viewimpl (basically #1 or #2) > > if you have any experience with these situation, please help ! > > -- > 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]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- 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.
