Hello, I migrated all my code to GWT 2.1. I was a bit surprised to not find any NestedPresenter helper. I created my "own" with an interface called NestedPresenter that provides a "start(HasWidgets.ForIsWidget container);" method.
I prefered doing it this way instead of using multiple ActivityManager because it is a real hell to predict all the different place that elements can have. In my application, I have 2 different "pages". - One with a list of items (each item is quite complex and has to be tested : View + Presenter for each one). - One with 5 sub presenter/view. Those two pages have a completly different layout, and I do not know exactly what will be the layout of new pages, so it is quite impossible for me to rely on several ActivityManager. Moreover, if I use nested presenter, in these pages, I only want to "render" them once when the page load, so I do not need any kind of place management. Would not be easier to create a Presenter interface that provides a start() method, that would be extended by Activity ? Thus, it would clarify the concept : Activity interface is an overlayer of Presenter for Place management, and Presenter is just a core part of the MVP pattern (that could be used for nested presenter too) Nicolas. 2010/10/30 zixzigma <[email protected]> > > Hello David, > > I am very excited about the GWT 2.1 release, and planning to use it > for a new upcoming project. > I have been following and studying the MVP for quite a while now and > experimenting with milestone releases. > > Just wanted to share some of my thoughts: > > I personally find the name "Activity" a bit confusing. > I've heard it is more popular in Android community. > to me, it is MVP, P referring to Presenter (not Activity!) > looking at the comments in source code, and tutorials, one can see > Presenter and Activity are used interchangeably. > eg: "An activity in GWT 2.1 is analogous to a presenter in MVP > terminology." from MVP tutorial. > > now for the first time in your comment i read: > > > 2) There is not necessarily a 1:1 correspondence between Activities > > and presenters. Your Activity might instantiate multiple presenters > > and corresponding views. > > I did not know that, as it was not explicitly stated anywhere. > so some clarification on that would really help. > btw where does the name "Activity" come from ? > > about nested views, > I was hoping that the new MVP framework address this, > as I was planning to use that extensively. > your solutions are interesting, I will try to implement them. > any basic tutorial on composite views would be great. > > thank you for GWT 2.1 ! > > -- > 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.
