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" />
助言がありますか?