- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在使用 AttributeModifier 为 esi:include 创建的 URL 时遇到问题。当 URL 在页面上呈现时,它就会被编码。
WebMarkupContainer esiSrc = new WebMarkupContainer("esiSrc");
String esiUrl = "http://domain.tld/blah/that?param1=abc¶m2=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&param2=123" />
有什么建议吗?
最佳答案
根据https://www.varnish-cache.org/trac/ticket/413您正在寻找错误的解决方案。
关于java - 正在编码的 AttributeModifier 模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24782269/
我有两列,它们是 orderbyborder 链接。当我单击一列时,我通过按以下方式添加 attributeModifier 更改了列的颜色 add(new AttributeModifier("st
我在使用 AttributeModifier 为 esi:include 创建的 URL 时遇到问题。当 URL 在页面上呈现时,它就会被编码。 WebMarkupContainer esiSrc =
在 Wicket 口中,AttributeModifier 不会更改 AjaxLink 的属性“class”。它应该更改类属性并更改链接的外观。 public class TestPage exten
我尝试使用 ObjectAutoCompleteBuilder 来构建 ObjectAutoCompleteField,如下所示: ObjectAutoCompleteBuilder builder
我是一名优秀的程序员,十分优秀!