Venkat Sadasivam Venkat Sadasivam - 1 year ago 84
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>"));
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download