Hey,
I try to implement some PlaceTokenizers, which indicate Token in a
defined scope.
E.g. I want some tokens ordered in "Photo", resulting to:
- "Photo:AlbumList"
- "Photo:Detail"
...
the GWT compiler is complaining about the usage of the same prefix
more than once. This completely confuses me, as a prefix doesn't makes
sense to me if its unique.
What part did I misunderstand?
Thx, Andi
@Prefix("Photo")
public static class Tokenizer implements
PlaceTokenizer<AlbumListPlace> {
/**
* from http://tbroyer.posterous.com/gwt-21-places-part-ii
*
* The returned value will them be prepended with the
PlaceTokenizer's
* @Prefix and a colon as a separator, and the resulting
String is used as the
* history token.
*/
@Override
public String getToken(AlbumListPlace place) {
return place.getUserId();
}
@Override
public AlbumListPlace getPlace(String token) {
return new AlbumListPlace(token);
}
}
--
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.