On Monday, September 22, 2014 8:58:43 AM UTC-5, Jens wrote:
Actually everything you have asked is covered in http://www.gwtproject.org/doc/latest/ DevGuideMvpActivitiesAndPlaces .html - The URL representation of a Place is described in "Places" section (Prefix + ":" + token)- The @Prefix is mentioned in "PlaceHistoryMapper" section and obviously you want to use it if you don't like the default prefix chosen by GWT (the Place class name)- How to get a token for a Hyperlink is covered in section "How to navigate" (using the PlaceHistoryMapper.getToken() method)So maybe you just need to read documentation a bit more carefully ;-)
Perhaps. Maybe you can explain where my reading is going astray. For instance:
" For more control of the PlaceHistoryMapper, you can use the @Prefix annotation on a PlaceTokenizer to change the first part of the URL associated with the Place. For even more control, you can instead implement PlaceHistoryMapperWithFactory and provide a TokenizerFactory that, in turn, provides individual PlaceTokenizers."
That says I can use @Prefix, but it doesn't say why I would want to, how I would use it, or how it gives me more control of the PlaceHistoryMapper.
And you're right, it does say I can call PlaceHistoryMapper.getToken() to get a token for a Hyperlink, but my Hyperlinks are laid out in UI Binder. There's no option to invoke PlaceHistoryMapper.getToken() there. The examples I can find for Hyperlink show tokens with no colons in them. I only figured out I needed a colon in there by reading the source code for AbstractPlaceHistoryMapper.getPlace().
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