0

I'd like to strip special Wicket tags (e.g. wicket:panel, wicket:child, etc.) from the output in development mode, but keep the wicket:id attribute.

In the WebApplications init one can set getMarkupSettings().setStripWicketTags(true); thus removing the special tags and attributes.

Is it possible to extend / modify Wicket at some point to keep the attribute when stripSpecialTags is set to true?

4

2 回答 2

0

为什么要保留wicket:id属性?用于测试/硒?然后可以使用DebugSettings::setComponentPathAttributeName方法输出wicket组件路径,在selenium中可以使用。

于 2016-01-12T12:36:40.030 回答
0

目前这是不可能的。请在https://issues.apache.org/jira/browse/WICKET提交改进请求!谢谢!

于 2016-01-06T10:13:35.817 回答