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.place
package has been split into thecom.google.gwt.place
andcom.google.gwt.activity
. Activity.Display
now iscom.google.gwt.user.client.ui.AcceptsOneWidget
, which is implemented bySimplePanel
(showActivityWidget
is thus renamed assetWidget
).IsWidget
has 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 theasWidget
method.- In addition, all widgets now accept
IsWidget
as argument where they already acceptedWidget
. HandlerManager
is@Deprecated
and no longer implementsEventBus
; you'll now use aSimpleEventBus
for your application-wide event bus.PlaceHistoryHandler
has been split into a concretePlaceHistoryHandler
and thePlaceHistoryMapper
interface, 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@WithTokenizers
annotation (and/or factory if you're usingPlaceHistoryMapperWithFactory
); this approach is similar to theActivityManager
vs.ActivityMapper
, with the added generator for the mapper based onPlaceTokenizer
s and@Prefix
.- The
ProxyPlace
,ProxyListPlace
and 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!