开发者

Dropping GWT token from URL

开发者 https://www.devze.com 2023-03-03 17:19 出处:网络
When working with GWT Activities and Places, is it possible to not display the token, e.g. \":myToken\" in the URL as seen below.

When working with GWT Activities and Places, is it possible to not display the token, e.g. ":myToken" in the URL as seen below.

From: http://domain.com开发者_Python百科/page/#HelloPlace:myToken

To: http://domain.com/page/#HelloPlace

Many thanks, Alex


The tokens are required for history support in the application when using the built in MVP architecture, I don't think you can remove them unless you only want to have one screen in your application.


See HyperLink.setTargetHistoryToken() documentation javadoc.

You can use an Anchor is you don't need history processing.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号