Do your header and footer actually need to be Activities? If not, I think it would be easier to set up a DockLayoutPanel as your main widget and create ActivityManagers only for those regions that need them. This thread might give you some ideas:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2812e1b15a2a98a6/8c82d629b7a48e56 /dmc On Fri, Dec 17, 2010 at 5:58 PM, Matthew Hill <[email protected]> wrote: > Thank you for your answer. I'm not sure that putting it in the host page is > a good idea for my app -- I'd rather use that as a last resort. > My current onModuleLoad override method in my Entry Point is this: > > private SimplePanel appWidget = new SimplePanel(); > > public void onModuleLoad() { > > ClientFactory clientFactory = GWT.create(ClientFactory.class); > > EventBus eventBus = clientFactory.getEventBus(); > > PlaceController placeController = clientFactory.getPlaceController(); > > ActivityMapper activityMapper = new AppActivityMapper(clientFactory); > > ActivityManager activityManager = new ActivityManager(activityMapper, > eventBus); > > activityManager.setDisplay(appWidget); > > AppPlaceHistoryMapper historyMapper = > GWT.create(AppPlaceHistoryMapper.class); > > PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper); > > historyHandler.register(placeController, eventBus, defaultPlace); > > RootPanel.get().add(appWidget); > > historyHandler.handleCurrentHistory(); > > } > > Couldn't I solve this problem by subclassing SimplePanel, and adding my > header and footer to appWidget before calling activityManager.setDisplay? > > -- > 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. > -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.com/ -- 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.
