Monday, April 28, 2014

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

http://blog.ltgt.net/gwt-21-places-part-ii/

On Monday, April 28, 2014 11:04:14 AM UTC+8, wahaha wrote:
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 http://blog.ltgt.net/gwt-21-places/ 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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment