AttributeModifier模型正在编码

时间:2014-07-16 13:35:40

标签: java wicket wicket-6

我的网址问题我是为esi创建的:包括使用AttributeModifier。当URL在页面上呈现时,它就会被编码。

WebMarkupContainer esiSrc = new WebMarkupContainer("esiSrc");
String esiUrl = "http://domain.tld/blah/that?param1=abc&param2=123";
esiSrc.add(new AttributeModifier("src", new Model<string>(esiUrl)));
esiSrc.setEscapeModelStrings(false);

add(esiSrc);

HTML:     <esi:include wicket:id="esiSrc" ttl="12h" onerror="continue" />

渲染的输出是:     <esi:include ttl="12h" onerror="continue" src="http://domain.tld/blah/that/?param1=abc&amp;param2=123" />

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

根据https://www.varnish-cache.org/trac/ticket/413,您正在寻找错误的解决方案。