Is there a way to pass hidden values in Wicket?
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开发者_StackOverflow中文版 about URLs like
http://www.example.com/example.html?uniqueId=309308&superSecretValue=42
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.
精彩评论