从输出页面中除了wicket tag的方法

从输出页面中去除wicket tag的方法有2种方法:?1. 在web.xml中设置Wicket为deployment模式。context-param

从输出页面中去除wicket tag的方法

有2种方法:

?

1. 在web.xml中设置Wicket为deployment模式。

<context-param>

??? <param-name>configuration</param-name>

??? <param-value>deployment</param-value>

</context-param>

?

如果希望在development模式下也不输出wicket tag,用第2种方法

?

2. 在WebApplication的init中设置setStripWicketTags为true。

getMarkupSettings().setStripWicketTags(true);

?

参考资料:

https://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html