Venkat Sadasivam Venkat Sadasivam - 9 months ago 50
Java Question

How to render <base> tag in wicket framework

What are the ways to render base tag using wicket framework?

In JSP I can do something like this:

<base href="${pageScope.contextPath}/" />

Answer Source

In YourPage.html:

   <base wicket:id="base"/>


WebComponent base = new WebComponent("base");
base.add(new AttributeModifier("href", "<the url>"));