Your FooPlace should have a getter method to return the stored id. In your 
ActivityMapper you create an activity for a given place. When you create 
your activity you can pass the place into its constructor or via a separate 
setPlace(Place place) method. Your activity would then call the getter of 
the FooPlace to get the id stored in the place and store it in a variable.

Take a look 
at 
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html
The AppActivityMapper constructs a HelloActivity and passes in the given 
HelloPlace. Then the HelloActivity calls HelloPlace.getName() in its 
constructor and stores the value. In HelloActivity.start() you can then use 
the value to make database calls, configure your view or whatever you need 
to do.

-- 
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/-/xt5l6enqe_IJ.
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.

Reply via email to