gpt4 book ai didi

java - 正在编码的 AttributeModifier 模型

转载 作者:太空宇宙 更新时间:2023-11-04 14:42:33 25 4
gpt4 key购买 nike

我在使用 AttributeModifier 为 esi:include 创建的 URL 时遇到问题。当 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" />

有什么建议吗?

最佳答案

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

关于java - 正在编码的 AttributeModifier 模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24782269/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com