如何在 wicket 框架中呈现 <base> 标签
How to render <base> tag in wicket framework
wicket框架渲染base标签的方式有哪些?
在 JSP 我可以做这样的事情:
<base href="${pageScope.contextPath}/" />
在YourPage.html中:
<head>
...
<base wicket:id="base"/>
...
</head>
在YourPage.java中:
WebComponent base = new WebComponent("base");
add(base);
base.add(new AttributeModifier("href", "<the url>"));
wicket框架渲染base标签的方式有哪些?
在 JSP 我可以做这样的事情:
<base href="${pageScope.contextPath}/" />
在YourPage.html中:
<head>
...
<base wicket:id="base"/>
...
</head>
在YourPage.java中:
WebComponent base = new WebComponent("base");
add(base);
base.add(new AttributeModifier("href", "<the url>"));