The doc is a bit unclear. It's up to you to create BasicPlace. It would look
something like this, but I haven't tested it.

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class BasicPlace extends Place {
public class BasicPlaceTokenizer implements PlaceTokenizer
{
 // Instance of a BasicPlace that will be returned
// for a null token
private BasicPlace place;

// Init this tokenizer with a subclass of BasicPlace
public BasicPlaceTokenizer(BasicPlace basicPlace) {
 this.place = basicPlace;
}
 @Override
public Place getPlace(String token) {
return this.place;
 }

@Override
public String getToken(Place place) {
 // BasicPlaces have no state so we can always
// return null. By default, GWT creates a
 // URL containing the class name of the Place
// so we don't have to worry about that part.
 return null;
}
}
}

HTH,
/dmc

On Fri, Mar 4, 2011 at 4:10 PM, Kathiravan Tamilvanan <[email protected]>wrote:

>
> http://code.google.com/webtoolkit/doc/trunk/DevGuideMvpActivitiesAndPlaces.html#Places
>  explains
> we can extend BasicPlace if the place does not maintain any state. I couldnt
> find that class in GWT 2.1.1 or GWT 2.2
>
> --
> 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
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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

Reply via email to