If you've started using GWT 2.1 Places and Activities with the Milestone 3, then here's what changed in the Release Candidate 1. I'll update my previous articles in the coming days to reflect those changes.
- The
com.google.gwt.app.placepackage has been split into thecom.google.gwt.placeandcom.google.gwt.activity. Activity.Displaynow iscom.google.gwt.user.client.ui.AcceptsOneWidget, which is implemented bySimplePanel(showActivityWidgetis thus renamed assetWidget).IsWidgethas been moved to com.google.gwt.user.client.ui and is now implemented byWidget(which returns itself); this means that if your view classesextends Widget(most views extend it throughComposite) you no longer have to implement theasWidgetmethod.- In addition, all widgets now accept
IsWidgetas argument where they already acceptedWidget. HandlerManageris@Deprecatedand no longer implementsEventBus; you'll now use aSimpleEventBusfor your application-wide event bus.PlaceHistoryHandlerhas been split into a concretePlaceHistoryHandlerand thePlaceHistoryMapperinterface, which you're free to implement yourself or use as before, giving your sub-interface toGWT.create()so that it generates the implementation from the@WithTokenizersannotation (and/or factory if you're usingPlaceHistoryMapperWithFactory); this approach is similar to theActivityManagervs.ActivityMapper, with the added generator for the mapper based onPlaceTokenizers and@Prefix.- The
ProxyPlace,ProxyListPlaceand associated classes (and abstract activities) have been moved to the Expenses sample (which doesn't use them yet).
And this list is only about the Places and Activities part: RequestFactory's API has been deeply refactored, and a new Editor module is born!