Adding dynamic javascript or css to a wicket page. Using ResourceReference is good for files, but code and urls requires using IHeaderContributor.
public final class HomePage extends WebPage implements IHeaderContributor{
ResourceReference ref = new ResourceReference(HomePage.class,"javascript.js");
private WebMarkupContainer container;
public HomePage() {
this(null);
}
public HomePage(PageParameters params) {
super(params);
container = new WebMarkupContainer("
آی-ویدئو