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")));
}
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")));
}
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")));
}
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()));
}
}
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)));
}
Aggregations