When using HistoryTokens with Activities and Places can you remove the (:) colon?

42 views
Skip to first unread message

Daniel Johnston

unread,
Jul 1, 2011, 12:57:06 PM7/1/11
to google-we...@googlegroups.com
By default it uses this mechanism http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html#Places , however I would like my URLs to look like this..

#Items

instead of ....

#Items:


Thanks
--
-Daniel Johnston

Thomas Broyer

unread,
Jul 1, 2011, 2:35:41 PM7/1/11
to google-we...@googlegroups.com
Short answer: no, because then you couldn't tell whether its the "items" prefix with empty token, or empty prefix with "items" token (right, it's the latter).

Long answer: yes, but not with PlaceTokenizers (implementing your own PlaceHistoryMapper; or with a catch-all PlaceTokenizer with the empty prefix), you'll have to implement your own "dispatch" (parsing) logic.

karthik reddy

unread,
Jul 1, 2011, 3:10:56 PM7/1/11
to google-we...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages