tputkonen
tputkonen

Reputation: 5729

How to generate unique links in Wicket application?

Our Wicket 1.5 application has lots of links for different tasks. We have a requirement that links our application generates have to be unique (and non-bookmarable).

How can we achieve this?

Upvotes: 1

Views: 133

Answers (1)

Nicktar
Nicktar

Reputation: 5575

By default every link is not bookmarkable as it contains the Page Version Id and is tied to a specific session.

Edit: Bookmarkable Links and Stateless Pages beeing the exceptions of this rule. Don't use them and you're safe.

2nd Edit: To make sure, there are no valid URLs from another session that work in a current session, you could add some unique value to your links by using or implementing a MountMapper as generally described here. This mapper could include a variable from the current websession as a parameter and check for that value when reading an URL...

Upvotes: 1

Related Questions