Apache wicket 6.X和7.x中的IRequestCycleProcessor

时间:2017-06-22 13:06:27

标签: wicket wicket-1.5 wicket-6 wicket-7

我正在使用wicket 1.4.9现在迁移到更新的版本7或6, 如何使用6.6.0中的以下代码

protected IRequestCycleProcessor newRequestCycleProcessor() {
        return new WebRequestCycleProcessor() {
            protected IRequestCodingStrategy newRequestCodingStrategy() {
                return new CryptedUrlWebRequestCodingStrategy(super.newRequestCodingStrategy());
            }
        };
    }

2 个答案:

答案 0 :(得分:1)

您需要CryptoMapper

要配置它,请在YourApplication#init()方法中添加以下内容:

setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this));

答案 1 :(得分:1)

我正在使用Wicket 7在您的应用程序中尝试此操作;

setRootRequestMapper(new CryptoMapper(getRootRequestMapper(),this));