use of org.apache.wicket.markup.head.PriorityHeaderItem in project openmeetings by apache.
the class UserMultiChoice method renderHead.
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(getClass(), "user-multi-choice.js"), "user-multi-choice")));
}
use of org.apache.wicket.markup.head.PriorityHeaderItem in project webanno by webanno.
the class LogoutPanel method renderHead.
@Override
public void renderHead(IHeaderResponse aResponse) {
super.renderHead(aResponse);
aResponse.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(getApplication().getJavaScriptLibrarySettings().getJQueryReference())));
// We use calls from this library to show the logout timer
aResponse.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(WicketAjaxJQueryResourceReference.get())));
int timeout = getAutoLogoutTime();
if (timeout > 0) {
aResponse.render(JavaScriptHeaderItem.forScript("$(document).ready(function() { new LogoutTimer(" + timeout + "); });", "webAnnoAutoLogout"));
}
}
use of org.apache.wicket.markup.head.PriorityHeaderItem in project syncope by apache.
the class BasePage method renderHead.
@Override
public void renderHead(final IHeaderResponse response) {
super.renderHead(response);
response.render(new PriorityHeaderItem(META_IE_EDGE));
}
use of org.apache.wicket.markup.head.PriorityHeaderItem in project wicket by apache.
the class ResourceAggregatorTest method testTwoBundlesWithDependenciesAndPriority.
/**
* bundle {a, b->a} and {c->a, d->c->a}, render [priority(b), d], should render [priority(ab),
* cd]
*/
@Test
public void testTwoBundlesWithDependenciesAndPriority() {
HeaderItem bundleAB = Application.get().getResourceBundles().addJavaScriptBundle(Application.class, "ab.js", new ResourceReferenceA(), new ResourceReferenceB());
HeaderItem bundleCD = Application.get().getResourceBundles().addJavaScriptBundle(Application.class, "cd.js", new ResourceReferenceC(), new ResourceReferenceD());
aggregator.render(new PriorityHeaderItem(forReference(new ResourceReferenceB())));
aggregator.render(forReference(new ResourceReferenceD()));
assertItems(new PriorityHeaderItem(bundleAB), bundleCD);
}
use of org.apache.wicket.markup.head.PriorityHeaderItem in project wicket by apache.
the class AbstractPage method renderHead.
@Override
public void renderHead(IHeaderResponse response) {
response.render(StringHeaderItem.forString("<title>HeaderContributionInAbstractPage</title>\n"));
response.render(new PriorityHeaderItem(StringHeaderItem.forString("<title>PriorityHeaderContributionInAbstractPage</title>\n")));
}
Aggregations