Search code examples
javagwtanchorgwt-activitiesgwt-places

GWT Places/Activities - what should be used for navigation?


I have a GWT Places/Activities web application. I use Anchor's click event to move user in a new "place", so there's no way user can open any "link" in a new window or tab. The question is - how do I make all these links real?


Solution

  • Maybe instead of using Anchor and listening to the ClickEvent use Hyperlink with the targetHistoryToken set to the Place name.

    e.g.

    <g:Hyperlink text="Home" targetHistoryToken="home" />