org.apache.wicket.markup.head.PriorityHeaderItem Java Examples

The following examples show how to use org.apache.wicket.markup.head.PriorityHeaderItem. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WidgetPage.java    From sakai with Educational Community License v2.0 6 votes vote down vote up
@Override
public void renderHead(final IHeaderResponse response) {
    super.renderHead(response);

    final String version = this.serverConfigurationService.getString("portal.cdn.version", "");

    // get the Sakai skin header fragment from the request attribute
    final HttpServletRequest request = (HttpServletRequest) getRequest().getContainerRequest();

    response.render(StringHeaderItem.forString((String) request.getAttribute("sakai.html.head")));
    response.render(OnLoadHeaderItem.forScript("setMainFrameHeight( window.name )"));

    // Tool additions (at end so we can override if required)
    response.render(StringHeaderItem.forString("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"));

    // render jQuery and the Wicket event library
    // Both must be priority so they are emitted into the head
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format("/library/webjars/jquery/1.12.4/jquery.min.js?version=%s", version))));
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format("/mycalendar/scripts/wicket/wicket-event-jquery.min.js?version=%s", version))));

    // additional styles (datepicker, this widget etc)
    response.render(CssHeaderItem.forUrl(String.format("/library/webjars/jquery-ui/1.12.1/jquery-ui.min.css?version=%s", version)));

    // NOTE: All libraries apart from jQuery and Wicket Event must be rendered inline with the application. See WidgetPage.html.

}
 
Example #2
Source File: WidgetPage.java    From sakai with Educational Community License v2.0 6 votes vote down vote up
@Override
public void renderHead(final IHeaderResponse response) {
	super.renderHead(response);
	
	// get the Sakai skin header fragment from the request attribute
	final HttpServletRequest request = (HttpServletRequest) getRequest().getContainerRequest();

	response.render(StringHeaderItem.forString((String) request.getAttribute("sakai.html.head")));
	response.render(OnLoadHeaderItem.forScript("setMainFrameHeight( window.name )"));

	// Tool additions (at end so we can override if required)
	response.render(StringHeaderItem.forString("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"));

	// render jQuery and the Wicket event library
	// Both must be priority so they are emitted into the head
	final String cdnQuery = PortalUtils.getCDNQuery();
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format(PortalUtils.getLatestJQueryPath()+ "?version=%s", cdnQuery))));
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format("/my-calendar/scripts/wicket/wicket-event-jquery.min.js?version=%s", cdnQuery))));

	// NOTE: All libraries apart from jQuery and Wicket Event must be rendered inline with the application. See WidgetPage.html.
}
 
Example #3
Source File: WidgetPage.java    From sakai with Educational Community License v2.0 6 votes vote down vote up
@Override
public void renderHead(final IHeaderResponse response) {
    super.renderHead(response);

    // get the Sakai skin header fragment from the request attribute
    final HttpServletRequest request = (HttpServletRequest) getRequest().getContainerRequest();

    response.render(StringHeaderItem.forString((String) request.getAttribute("sakai.html.head")));
    response.render(OnLoadHeaderItem.forScript("setMainFrameHeight( window.name )"));

    // Tool additions (at end so we can override if required)
    response.render(StringHeaderItem.forString("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"));

    // render jQuery and the Wicket event library
    // Both must be priority so they are emitted into the head
    final String cdnQuery = PortalUtils.getCDNQuery();
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format(PortalUtils.getLatestJQueryPath()+ "?version=%s", cdnQuery))));
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format("/my-calendar/scripts/wicket/wicket-event-jquery.min.js?version=%s", cdnQuery))));

    // NOTE: All libraries apart from jQuery and Wicket Event must be rendered inline with the application. See WidgetPage.html.
}
 
Example #4
Source File: WidgetPage.java    From sakai with Educational Community License v2.0 6 votes vote down vote up
@Override
public void renderHead(final IHeaderResponse response) {

    super.renderHead(response);

    final String version = this.serverConfigurationService.getString("portal.cdn.version", "");

    // get the Sakai skin header fragment from the request attribute
    final HttpServletRequest request = (HttpServletRequest) getRequest().getContainerRequest();

    response.render(StringHeaderItem.forString((String) request.getAttribute("sakai.html.head")));
    response.render(OnLoadHeaderItem.forScript("setMainFrameHeight( window.name )"));

    // Tool additions (at end so we can override if required)
    response.render(StringHeaderItem.forString("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"));

    // render jQuery and the Wicket event library
    // Both must be priority so they are emitted into the head
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format("/library/webjars/jquery/1.12.4/jquery.min.js?version=%s", version))));
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format("/site-description/scripts/wicket/wicket-event-jquery.min.js?version=%s", version))));

    // NOTE: All libraries apart from jQuery and Wicket Event must be rendered inline with the application. See WidgetPage.html.
}
 
Example #5
Source File: WidgetPage.java    From sakai with Educational Community License v2.0 6 votes vote down vote up
@Override
public void renderHead(final IHeaderResponse response) {
    super.renderHead(response);

    final String version = this.serverConfigurationService.getString("portal.cdn.version", "");

    // get the Sakai skin header fragment from the request attribute
    final HttpServletRequest request = (HttpServletRequest) getRequest().getContainerRequest();

    response.render(StringHeaderItem.forString((String) request.getAttribute("sakai.html.head")));
    response.render(OnLoadHeaderItem.forScript("setMainFrameHeight( window.name )"));

    // Tool additions (at end so we can override if required)
    response.render(StringHeaderItem.forString("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"));

    // render jQuery and the Wicket event library
    // Both must be priority so they are emitted into the head
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format("/library/webjars/jquery/1.12.4/jquery.min.js?version=%s", version))));
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format("/mycalendar/scripts/wicket/wicket-event-jquery.min.js?version=%s", version))));

    // additional styles (datepicker, this widget etc)
    response.render(CssHeaderItem.forUrl(String.format("/library/webjars/jquery-ui/1.12.1/jquery-ui.min.css?version=%s", version)));

    // NOTE: All libraries apart from jQuery and Wicket Event must be rendered inline with the application. See WidgetPage.html.

}
 
Example #6
Source File: WidgetPage.java    From sakai with Educational Community License v2.0 6 votes vote down vote up
@Override
public void renderHead(final IHeaderResponse response) {

    super.renderHead(response);

    final String version = this.serverConfigurationService.getString("portal.cdn.version", "");

    // get the Sakai skin header fragment from the request attribute
    final HttpServletRequest request = (HttpServletRequest) getRequest().getContainerRequest();

    response.render(StringHeaderItem.forString((String) request.getAttribute("sakai.html.head")));
    response.render(OnLoadHeaderItem.forScript("setMainFrameHeight( window.name )"));

    // Tool additions (at end so we can override if required)
    response.render(StringHeaderItem.forString("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"));

    // render jQuery and the Wicket event library
    // Both must be priority so they are emitted into the head
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format("/library/webjars/jquery/1.12.4/jquery.min.js?version=%s", version))));
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format("/site-description/scripts/wicket/wicket-event-jquery.min.js?version=%s", version))));

    // NOTE: All libraries apart from jQuery and Wicket Event must be rendered inline with the application. See WidgetPage.html.
}
 
Example #7
Source File: WidgetPage.java    From sakai with Educational Community License v2.0 6 votes vote down vote up
@Override
public void renderHead(final IHeaderResponse response) {
    super.renderHead(response);

    // get the Sakai skin header fragment from the request attribute
    final HttpServletRequest request = (HttpServletRequest) getRequest().getContainerRequest();

    response.render(StringHeaderItem.forString((String) request.getAttribute("sakai.html.head")));
    response.render(OnLoadHeaderItem.forScript("setMainFrameHeight( window.name )"));

    // Tool additions (at end so we can override if required)
    response.render(StringHeaderItem.forString("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"));

    // render jQuery and the Wicket event library
    // Both must be priority so they are emitted into the head
    final String cdnQuery = PortalUtils.getCDNQuery();
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format(PortalUtils.getLatestJQueryPath()+ "?version=%s", cdnQuery))));
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format("/my-calendar/scripts/wicket/wicket-event-jquery.min.js?version=%s", cdnQuery))));

    // NOTE: All libraries apart from jQuery and Wicket Event must be rendered inline with the application. See WidgetPage.html.
}
 
Example #8
Source File: WidgetPage.java    From sakai with Educational Community License v2.0 6 votes vote down vote up
@Override
public void renderHead(final IHeaderResponse response) {
	super.renderHead(response);
	
	// get the Sakai skin header fragment from the request attribute
	final HttpServletRequest request = (HttpServletRequest) getRequest().getContainerRequest();

	response.render(StringHeaderItem.forString((String) request.getAttribute("sakai.html.head")));
	response.render(OnLoadHeaderItem.forScript("setMainFrameHeight( window.name )"));

	// Tool additions (at end so we can override if required)
	response.render(StringHeaderItem.forString("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"));

	// render jQuery and the Wicket event library
	// Both must be priority so they are emitted into the head
	final String cdnQuery = PortalUtils.getCDNQuery();
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format(PortalUtils.getLatestJQueryPath()+ "?version=%s", cdnQuery))));
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl(String.format("/my-calendar/scripts/wicket/wicket-event-jquery.min.js?version=%s", cdnQuery))));

	// NOTE: All libraries apart from jQuery and Wicket Event must be rendered inline with the application. See WidgetPage.html.
}
 
Example #9
Source File: LogoutPanel.java    From webanno with Apache License 2.0 6 votes vote down vote up
@Override
public void renderHead(IHeaderResponse aResponse)
{
    super.renderHead(aResponse);

    aResponse.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(
            getApplication().getJavaScriptLibrarySettings().getJQueryReference())));
    
    // We use calls from this library to show the logout timer
    aResponse.render(new PriorityHeaderItem(
            JavaScriptHeaderItem.forReference(WicketAjaxJQueryResourceReference.get())));
    
    int timeout = getAutoLogoutTime();
    if (timeout > 0) {
        aResponse.render(JavaScriptHeaderItem.forScript(
                "$(document).ready(function() { new LogoutTimer(" + timeout + "); });",
                "webAnnoAutoLogout"));
    }
}
 
Example #10
Source File: BasePage.java    From Orienteer with Apache License 2.0 6 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	response.render(new PriorityHeaderItem(CssHeaderItem.forReference(BOOTSTRAP_CSS)));
	response.render(CssHeaderItem.forReference(FONT_AWESOME_CSS));
	response.render(CssHeaderItem.forReference(SIMPLE_LINE_ICONS_CSS));
	response.render(CssHeaderItem.forReference(COREUI_CSS));
	response.render(CssHeaderItem.forReference(ORIENTEER_COREUI_CSS));
	super.renderHead(response);
	addBootstrapDatepicker(response);
	JavaScriptLibrarySettings javaScriptSettings =
			getApplication().getJavaScriptLibrarySettings();
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem
			.forReference(javaScriptSettings.getJQueryReference())));
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(BOOTSTRAP_JS)));
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(TETHER_JS)));
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(PACE_JS)));
	response.render(JavaScriptHeaderItem.forReference(COREUI_JS).setDefer(true));

}
 
Example #11
Source File: Chat.java    From openmeetings with Apache License 2.0 6 votes vote down vote up
@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));
		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()));
	}
}
 
Example #12
Source File: NextServerJavaScriptContributor.java    From nextreports-server with Apache License 2.0 5 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {		
       IJavaScriptLibrarySettings settings = NextServerApplication.get().getJavaScriptLibrarySettings();
       response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(settings.getJQueryReference())));
       response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(settings.getWicketAjaxReference())));
       response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forUrl("js/nextserver.js")));               
}
 
Example #13
Source File: BasePage.java    From sakai with Educational Community License v2.0 5 votes vote down vote up
/**
 * This block adds the required wrapper markup to style it like a Sakai tool. Add to this any additional CSS or JS references that you
 * need.
 *
 */
@Override
public void renderHead(final IHeaderResponse response) {
	super.renderHead(response);

	final String version = PortalUtils.getCDNQuery();

	// get the Sakai skin header fragment from the request attribute
	final HttpServletRequest request = (HttpServletRequest) getRequest().getContainerRequest();

	response.render(new PriorityHeaderItem(JavaScriptHeaderItem
			.forReference(getApplication().getJavaScriptLibrarySettings().getJQueryReference())));

	response.render(StringHeaderItem.forString((String) request.getAttribute("sakai.html.head")));
	response.render(OnLoadHeaderItem.forScript("setMainFrameHeight( window.name )"));

	// Tool additions (at end so we can override if required)
	response.render(StringHeaderItem
			.forString("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"));

	// Shared JavaScript and stylesheets
	// Force Wicket to use Sakai's version of jQuery
	response.render(
			new PriorityHeaderItem(
					JavaScriptHeaderItem
							.forUrl(String.format("/library/webjars/jquery/1.12.4/jquery.min.js%s", version))));
	// And pair this instance of jQuery with a Bootstrap version we've tested with
	response.render(
			new PriorityHeaderItem(
					JavaScriptHeaderItem
							.forUrl(String.format("/library/webjars/bootstrap/3.3.7/js/bootstrap.min.js%s", version))));
	// Some global gradebookng styles
	response.render(CssHeaderItem
			.forUrl(String.format("/gradebookng-tool/styles/gradebook-shared.css%s", version)));

}
 
Example #14
Source File: SystemLogPage.java    From nextreports-server with Apache License 2.0 5 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	
       IJavaScriptLibrarySettings settings = NextServerApplication.get().getJavaScriptLibrarySettings();
       response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(settings.getJQueryReference())));
	
	response.render(OnLoadHeaderItem.forScript("$(\"#log\").scrollTop($(\"#log\").prop(\"scrollHeight\"));"));
}
 
Example #15
Source File: IntegrationBasePage.java    From nextreports-server with Apache License 2.0 5 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	
       IJavaScriptLibrarySettings settings = NextServerApplication.get().getJavaScriptLibrarySettings();
       response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(settings.getJQueryReference())));
}
 
Example #16
Source File: WidgetZoomPage.java    From nextreports-server with Apache License 2.0 5 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	
       IJavaScriptLibrarySettings settings = NextServerApplication.get().getJavaScriptLibrarySettings();
       response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(settings.getJQueryReference())));
}
 
Example #17
Source File: PivotPage.java    From nextreports-server with Apache License 2.0 5 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	
       IJavaScriptLibrarySettings settings = NextServerApplication.get().getJavaScriptLibrarySettings();
       response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(settings.getJQueryReference())));
}
 
Example #18
Source File: BasePage.java    From openmeetings with Apache License 2.0 5 votes vote down vote up
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("css/theme.css"));
	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));
	}
	response.render(CssHeaderItem.forReference(FontAwesome5CssReference.instance()));
	response.render(new FilteredHeaderItem(CssHeaderItem.forUrl("css/custom.css"), CUSTOM_CSS_FILTER));
}
 
Example #19
Source File: BasePage.java    From sakai with Educational Community License v2.0 5 votes vote down vote up
/**
 * This block adds the required wrapper markup to style it like a Sakai tool. Add to this any additional CSS or JS references that you
 * need.
 *
 */
@Override
public void renderHead(final IHeaderResponse response) {
	super.renderHead(response);

	final String version = PortalUtils.getCDNQuery();

	// get the Sakai skin header fragment from the request attribute
	final HttpServletRequest request = (HttpServletRequest) getRequest().getContainerRequest();

	response.render(new PriorityHeaderItem(JavaScriptHeaderItem
			.forReference(getApplication().getJavaScriptLibrarySettings().getJQueryReference())));

	response.render(StringHeaderItem.forString((String) request.getAttribute("sakai.html.head")));
	response.render(OnLoadHeaderItem.forScript("setMainFrameHeight( window.name )"));

	// Tool additions (at end so we can override if required)
	response.render(StringHeaderItem
			.forString("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"));

	// Shared JavaScript and stylesheets
	// Force Wicket to use Sakai's version of jQuery
	response.render(
			new PriorityHeaderItem(
					JavaScriptHeaderItem
							.forUrl(String.format("/library/webjars/jquery/1.12.4/jquery.min.js%s", version))));
	// And pair this instance of jQuery with a Bootstrap version we've tested with
	response.render(
			new PriorityHeaderItem(
					JavaScriptHeaderItem
							.forUrl(String.format("/library/webjars/bootstrap/3.3.7/js/bootstrap.min.js%s", version))));
	// Some global gradebookng styles
	response.render(CssHeaderItem
			.forUrl(String.format("/gradebookng-tool/styles/gradebook-shared.css%s", version)));

}
 
Example #20
Source File: OmAjaxClientInfoBehavior.java    From openmeetings with Apache License 2.0 5 votes vote down vote up
@Override
public void renderHead(Component component, IHeaderResponse response) {
	super.renderHead(component, response);
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(MAIN_JS)));
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forScript(
			String.format("OmUtil.init(%s)", new JSONObject()
					.put("debug", DEVELOPMENT == Application.get().getConfigurationType()))
			, "om-util-init")));
}
 
Example #21
Source File: RoomPanel.java    From openmeetings with Apache License 2.0 5 votes vote down vote up
@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"))));
	response.render(JavaScriptHeaderItem.forReference(TouchPunchResourceReference.instance()));
	if (room.isVisible()) {
		response.render(OnDomReadyHeaderItem.forScript(roomEnter.getCallbackScript()));
	}
}
 
Example #22
Source File: AbstractModalPanel.java    From syncope with Apache License 2.0 4 votes vote down vote up
@Override
public void renderHead(final IHeaderResponse response) {
    super.renderHead(response);
    response.render(new PriorityHeaderItem(meta));
}
 
Example #23
Source File: BasePage.java    From syncope with Apache License 2.0 4 votes vote down vote up
@Override
public void renderHead(final IHeaderResponse response) {
    super.renderHead(response);
    response.render(new PriorityHeaderItem(META_IE_EDGE));
}
 
Example #24
Source File: MainPanel.java    From openmeetings with Apache License 2.0 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(BootstrapJavaScriptReference.instance()))); //this one should go before jquery-ui
	super.renderHead(response);
}
 
Example #25
Source File: UserMultiChoice.java    From openmeetings with Apache License 2.0 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(getClass(), "user-multi-choice.js"), "user-multi-choice")));
}
 
Example #26
Source File: OClassSearchPanel.java    From Orienteer with Apache License 2.0 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
    super.renderHead(response);
    response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(JQueryDashboardSupport.JQUERY_UI_JS)));
}
 
Example #27
Source File: PollsSubMenu.java    From openmeetings with Apache License 2.0 4 votes vote down vote up
public void renderHead(IHeaderResponse response) {
	response.render(new PriorityHeaderItem(getNamedFunction(FUNC_QPOLL_ACTION, quickPollAction, explicit(PARAM_ACTION), explicit(PARAM_VOTE))));
}
 
Example #28
Source File: VideoSettings.java    From openmeetings with Apache License 2.0 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(SETTINGS_JS_REFERENCE)));
}
 
Example #29
Source File: UploadDialog.java    From openmeetings with Apache License 2.0 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(UploadDialog.class, "upload.js"))));
}
 
Example #30
Source File: ActivitiesPanel.java    From openmeetings with Apache License 2.0 4 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {
	super.renderHead(response);
	response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(ActivitiesPanel.class, "activities.js"))));
}