use of org.apache.wicket.markup.head.PriorityHeaderItem in project wicket by apache.
the class ResourceAggregatorTest method testBundleWithPriority.
/**
* bundle {a, b -> a}, render [x, priority(a)], should render [priority(ab), x]
*/
@Test
public void testBundleWithPriority() {
HeaderItem bundleAB = Application.get().getResourceBundles().addJavaScriptBundle(Application.class, "ab.js", new ResourceReferenceA(), new ResourceReferenceB());
aggregator.render(forReference(new ResourceReferenceX()));
aggregator.render(new PriorityHeaderItem(forReference(new ResourceReferenceA())));
assertItems(new PriorityHeaderItem(bundleAB), forReference(new ResourceReferenceX()));
}
use of org.apache.wicket.markup.head.PriorityHeaderItem in project syncope by apache.
the class AbstractModalPanel method renderHead.
@Override
public void renderHead(final IHeaderResponse response) {
super.renderHead(response);
response.render(new PriorityHeaderItem(meta));
}
use of org.apache.wicket.markup.head.PriorityHeaderItem in project openmeetings by apache.
the class CalendarFunctionsBehavior method renderHead.
@Override
public void renderHead(Component component, IHeaderResponse response) {
super.renderHead(component, response);
response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(this.newResourceReference(), "calendar-functions")));
}
use of org.apache.wicket.markup.head.PriorityHeaderItem in project openmeetings by apache.
the class ActivitiesPanel method renderHead.
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(ActivitiesPanel.class, "activities.js"))));
}
use of org.apache.wicket.markup.head.PriorityHeaderItem in project openmeetings by apache.
the class AbstractWbPanel method renderHead.
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(new PriorityHeaderItem(getNamedFunction(FUNC_ACTION, wbAction, explicit(PARAM_ACTION), explicit(PARAM_OBJ))));
}
Aggregations