问题
As described in Wicket redirect: how to pass on parameters and keeps URLs "pretty"?, there are a variety of options for passing parameters in Wicket. However, all of the methods listed on that page use the URL to transmit parameter information.
Is there a class that's similar to the PageParameters class except that it hides the information it's transmitting? I don't care about bookmarkability, but I do care about URLs like
http://www.example.com/example.html?uniqueId=309308&superSecretValue=42
回答1:
Installing a custom URL coding strategy is the way.
Note though that normally Wicket doesn't expose its internal state anyway, so you'll only need this for bookmarkable pages.
来源:https://stackoverflow.com/questions/5147040/is-there-a-way-to-pass-hidden-values-in-wicket