Search in sources :

Example 6 with PriorityHeaderItem

use of org.apache.wicket.markup.head.PriorityHeaderItem in project openmeetings by apache.

the class RoomSidebar method renderHead.

@Override
public void renderHead(IHeaderResponse response) {
    super.renderHead(response);
    response.render(new PriorityHeaderItem(getNamedFunction(FUNC_TOGGLE_RIGHT, toggleRight, explicit(PARAM_RIGHT), explicit(PARAM_UID))));
    response.render(new PriorityHeaderItem(getNamedFunction(FUNC_TOGGLE_ACTIVITY, toggleActivity, explicit(PARAM_ACTIVITY), explicit(PARAM_UID), explicit(PARAM_POD))));
    response.render(new PriorityHeaderItem(getNamedFunction(FUNC_ACTION, roomAction, explicit(PARAM_ACTION), explicit(PARAM_UID))));
    response.render(new PriorityHeaderItem(getNamedFunction(FUNC_SETTINGS, avSettings, explicit(PARAM_SETTINGS))));
}
Also used : PriorityHeaderItem(org.apache.wicket.markup.head.PriorityHeaderItem)

Example 7 with PriorityHeaderItem

use of org.apache.wicket.markup.head.PriorityHeaderItem in project openmeetings by apache.

the class UploadDialog method renderHead.

@Override
public void renderHead(IHeaderResponse response) {
    super.renderHead(response);
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(UploadDialog.class, "upload.js"))));
}
Also used : PriorityHeaderItem(org.apache.wicket.markup.head.PriorityHeaderItem) JavaScriptResourceReference(org.apache.wicket.request.resource.JavaScriptResourceReference)

Example 8 with PriorityHeaderItem

use of org.apache.wicket.markup.head.PriorityHeaderItem in project openmeetings by apache.

the class RoomPanel method renderHead.

@Override
public void renderHead(IHeaderResponse response) {
    super.renderHead(response);
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(interview ? INTERVIEWWB_JS_REFERENCE : WB_JS_REFERENCE)));
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(RoomPanel.class, "room.js"))));
    if (room.isVisible()) {
        response.render(OnDomReadyHeaderItem.forScript(roomEnter.getCallbackScript()));
    }
}
Also used : PriorityHeaderItem(org.apache.wicket.markup.head.PriorityHeaderItem) JavaScriptResourceReference(org.apache.wicket.request.resource.JavaScriptResourceReference)

Example 9 with PriorityHeaderItem

use of org.apache.wicket.markup.head.PriorityHeaderItem in project openmeetings by apache.

the class BasePage method internalRenderHead.

protected void internalRenderHead(IHeaderResponse response) {
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(Application.get().getJavaScriptLibrarySettings().getJQueryReference())));
    super.renderHead(response);
    final String suffix = DEVELOPMENT == getApplication().getConfigurationType() ? "" : ".min";
    response.render(CssHeaderItem.forUrl(String.format("css/theme_om/jquery-ui%s.css", suffix)));
    response.render(CssHeaderItem.forUrl(String.format("css/theme%s.css", suffix)));
    if (isRtl()) {
        response.render(CssHeaderItem.forUrl(String.format("css/theme-rtl%s.css", suffix)));
    }
    if (!Strings.isEmpty(getGaCode())) {
        response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(BasePage.class, "om-ga.js"))));
        StringBuilder script = new StringBuilder("initGA('");
        script.append(getGaCode()).append("');").append(isMainPage() ? "initHash()" : "init()").append(';');
        response.render(OnDomReadyHeaderItem.forScript(script));
    }
}
Also used : PriorityHeaderItem(org.apache.wicket.markup.head.PriorityHeaderItem) JavaScriptResourceReference(org.apache.wicket.request.resource.JavaScriptResourceReference)

Example 10 with PriorityHeaderItem

use of org.apache.wicket.markup.head.PriorityHeaderItem in project openmeetings by apache.

the class AdminBasePanel method renderHead.

@Override
public void renderHead(IHeaderResponse response) {
    super.renderHead(response);
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(ADMIN_SCRIPT)));
}
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