从 wicket 获取完整的 html 代码
Get full html code from wicket
我正在尝试将 html 代码从 wicket 应用程序解析到 Java。我的应用程序使用 wicket,我找到了一个方法
tester.getLastResponse().getDocument()
就是这样做的。但是,并非所有 html 代码都包含在其中。当我保存这个输出时,我可以看到有像
这样的地方
< MARKUP FOR
com. ... .form.PlainCheckBoxPanel END
>
如何让它解析完整的 html 代码?
您的应用程序似乎 运行 处于开发模式并且 org.apache.wicket.settings.DebugSettings#isOutputMarkupContainerClassName()
returns true
.
将其更改为生产模式或调用 org.apache.wicket.settings.DebugSettings#setOutputMarkupContainerClassName(false)
。
我正在尝试将 html 代码从 wicket 应用程序解析到 Java。我的应用程序使用 wicket,我找到了一个方法
tester.getLastResponse().getDocument()
就是这样做的。但是,并非所有 html 代码都包含在其中。当我保存这个输出时,我可以看到有像
这样的地方< MARKUP FOR com. ... .form.PlainCheckBoxPanel END >
如何让它解析完整的 html 代码?
您的应用程序似乎 运行 处于开发模式并且 org.apache.wicket.settings.DebugSettings#isOutputMarkupContainerClassName()
returns true
.
将其更改为生产模式或调用 org.apache.wicket.settings.DebugSettings#setOutputMarkupContainerClassName(false)
。