Well I am not very familiar with the GWT MVP Framework but from what I've read I would use one Place and one Activity for the whole TabLayoutPanel an put it into a "display region" ( = AcceptsOneWidget). I guess that should be fine in most situations. For example a GWT application may have a place where the user can change his personal preferences. These preferences could be categorized into a couple of categories. This should be typical use case for a TabLayoutPanel. So I would create a SettingsPlaces and a SettingsActivity. The SettingsActivity would then put its view (a complete TabLayoutPanel) into the AcceptsOnWidget provided in the activities start method. To determine the tab that should be shown I would use the place token, e.g. http://<yourapp>/#SettingsPlace:t=<tabindex>.
Maybe I missed something because I am not a GWT MVP "expert" but I hope it helps. In my opinion, having a separate ActivityManager for a TabLayoutPanel is a bit overkill. If I am wrong, someone please correct me :) I am also interested in how TabLayoutPanels should be used with the GWT MVP Framework. Why do you want to use a TabLayoutPanel and why do you think you need an activity/place per tab? On 3 Feb., 18:32, Ernesto Reig <[email protected]> wrote: > Hello everybody, > I don´t know if this problem can be solved easily or maybe I have to think > of another approach. > The thing is that I want a TabLayoutPanel, so that the ActivityManager keeps > track of all the activity´s of the different tabs, but the first problem I > find is setting the Display. The ActivityManager only accepts instances of > AcceptsOneWidget (activityManager.setDisplay(AcceptsOneWidget display);) > What can I do to implement this?? > > The second problem is that, providing that I finally have the > ActivityManager "managing" all the activities running within the context of > the TabLayoutPanel, what´s the best way to do this? I mean, is it better to > haver one View, one Place and one Activity per tab? How would you do it? > > Thank you very much. -- 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.
