使用wicket框架渲染基本标签的方法有哪些?
在 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>"));
关于java - 如何在 wicket 框架中渲染 <base> 标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40495597/