Sunday, April 27, 2014

Re: MVP,why set the location.hash to "class name + : + token"?

i want to know how the PlaceHistoryMapper implement class take place
how can i read the real source code of the class createed by GWT.create(a subclass of PlaceHistoryMapper) ?

On Monday, April 28, 2014 3:35:20 AM UTC+8, Thomas Broyer wrote:

On Sunday, April 27, 2014 11:43:28 AM UTC+2, wahaha wrote:
we know that every implement class of Place has a token
when we call placeController.goTo(newPlace),the location's hash part will change to "new class name + : + token"
why not only class name or token??

It's not "class name", it's @Prefix, which defaults to the class name.

Why not only class name? Because then you couldn't have varying parts (such as entity IDs).
Why not only token? Because then couldn't have "routing" with several Place classes.

See for more details on places.

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment