Is there a way to pass hidden values in Wicket?

时间秒杀一切 提交于 2019-12-11 17:59:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!