Search in sources :

Example 16 with PriorityHeaderItem

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

the class ConcretePage method renderHead.

@Override
public void renderHead(IHeaderResponse response) {
    super.renderHead(response);
    response.render(StringHeaderItem.forString("<title>HeaderContributionInConcretePage</title>\n"));
    response.render(new PriorityHeaderItem(StringHeaderItem.forString("<title>PriorityHeaderContributionInConcretePage</title>\n")));
}
Also used : PriorityHeaderItem(org.apache.wicket.markup.head.PriorityHeaderItem)

Example 17 with PriorityHeaderItem

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

the class HeaderPanel method renderHead.

@Override
public void renderHead(IHeaderResponse response) {
    response.render(StringHeaderItem.forString("<title>HeaderContributionInHeaderPanel</title>\n"));
    response.render(new PriorityHeaderItem(StringHeaderItem.forString("<title>PriorityHeaderContributionInHeaderPanel</title>\n")));
}
Also used : PriorityHeaderItem(org.apache.wicket.markup.head.PriorityHeaderItem)

Example 18 with PriorityHeaderItem

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

the class PanelWithHeader method renderHead.

@Override
public void renderHead(IHeaderResponse response) {
    response.render(StringHeaderItem.forString("<title>HeaderContributionInPanelWithHeader</title>\n"));
    response.render(new PriorityHeaderItem(new StringHeaderItemWithDependency("<title>PriorityHeaderContributionInPanelWithHeader</title>\n")));
}
Also used : PriorityHeaderItem(org.apache.wicket.markup.head.PriorityHeaderItem)

Example 19 with PriorityHeaderItem

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

the class Chat method renderHead.

@Override
public void renderHead(IHeaderResponse response) {
    super.renderHead(response);
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(Chat.class, "chat.js"))));
    response.render(new PriorityHeaderItem(getNamedFunction("chatActivity", chatActivity, explicit(PARAM_TYPE), explicit(PARAM_ROOM_ID), explicit(PARAM_MSG_ID))));
    if (showDashboardChat) {
        StringBuilder sb = new StringBuilder(getReinit());
        List<ChatMessage> list = new ArrayList<>(chatDao.getGlobal(0, 30));
        for (Long roomId : cm.listRoomIds(getUserId())) {
            Room r = roomDao.get(roomId);
            sb.append(addRoom(r));
        }
        list.addAll(chatDao.getUserRecent(getUserId(), Date.from(Instant.now().minus(Duration.ofHours(1L))), 0, 30));
        if (!list.isEmpty()) {
            sb.append("Chat.addMessage(").append(getMessage(list).toString()).append(");");
        }
        response.render(OnDomReadyHeaderItem.forScript(sb.toString()));
    }
}
Also used : PriorityHeaderItem(org.apache.wicket.markup.head.PriorityHeaderItem) ChatMessage(org.apache.openmeetings.db.entity.basic.ChatMessage) JavaScriptResourceReference(org.apache.wicket.request.resource.JavaScriptResourceReference) ArrayList(java.util.ArrayList) Room(org.apache.openmeetings.db.entity.room.Room)

Example 20 with PriorityHeaderItem

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

the class VideoSettings method renderHead.

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