Search in sources :

Example 1 with PriorityHeaderItem

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()));
}
Also used : PriorityHeaderItem(org.apache.wicket.markup.head.PriorityHeaderItem) HeaderItem(org.apache.wicket.markup.head.HeaderItem) PriorityHeaderItem(org.apache.wicket.markup.head.PriorityHeaderItem) Test(org.junit.Test)

Example 2 with PriorityHeaderItem

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));
}
Also used : PriorityHeaderItem(org.apache.wicket.markup.head.PriorityHeaderItem)

Example 3 with PriorityHeaderItem

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")));
}
Also used : PriorityHeaderItem(org.apache.wicket.markup.head.PriorityHeaderItem)

Example 4 with PriorityHeaderItem

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"))));
}
Also used : PriorityHeaderItem(org.apache.wicket.markup.head.PriorityHeaderItem) JavaScriptResourceReference(org.apache.wicket.request.resource.JavaScriptResourceReference)

Example 5 with PriorityHeaderItem

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))));
}
Also used : PriorityHeaderItem(org.apache.wicket.markup.head.PriorityHeaderItem)

Aggregations

PriorityHeaderItem (org.apache.wicket.markup.head.PriorityHeaderItem)22 JavaScriptResourceReference (org.apache.wicket.request.resource.JavaScriptResourceReference)6 HeaderItem (org.apache.wicket.markup.head.HeaderItem)2 Test (org.junit.Test)2 JSONObject (com.github.openjson.JSONObject)1 DialogButton (com.googlecode.wicket.jquery.ui.widget.dialog.DialogButton)1 ArrayList (java.util.ArrayList)1 ChatMessage (org.apache.openmeetings.db.entity.basic.ChatMessage)1 Room (org.apache.openmeetings.db.entity.room.Room)1 PrivateMessage (org.apache.openmeetings.db.entity.user.PrivateMessage)1 MenuPanel (org.apache.openmeetings.web.common.menu.MenuPanel)1 AboutDialog (org.apache.openmeetings.web.user.AboutDialog)1 InviteUserToRoomDialog (org.apache.openmeetings.web.user.InviteUserToRoomDialog)1 MessageDialog (org.apache.openmeetings.web.user.MessageDialog)1 UserInfoDialog (org.apache.openmeetings.web.user.UserInfoDialog)1 ChatPanel (org.apache.openmeetings.web.user.chat.ChatPanel)1 Component (org.apache.wicket.Component)1 AbstractDefaultAjaxBehavior (org.apache.wicket.ajax.AbstractDefaultAjaxBehavior)1 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)1 IPartialPageRequestHandler (org.apache.wicket.core.request.handler.IPartialPageRequestHandler)1