In your ActivityMapper's getActivity(Place place) method you have to set the
Place into your activity before returning it. I also use GIN so I have
ActivityProviders in my ActivityMapper. All my activities extend a custom
super class that provides a setPlace(Place place) method and a typically
code snippet in my ActivityMapper looks like:
if(place instanceof MyPlace) {
MyActivity activity = this.myActivityProvider.get();
activity.setPlace((MyPlace) place);
return activity;
}
In the activity itself I just copy the place data into variables of the
activity (so just this.parameter = place.getParamter()). As setPlace() is
always called before the activitie's start method I have all information I
need to actually start the activity.
-- J.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/q1q_Pb_zM-0J.
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.