コード例 #1
0
ファイル: BasePage.java プロジェクト: haiger/commafeed
  @Override
  public void renderHead(IHeaderResponse response) {
    super.renderHead(response);

    if (getApplication().getConfigurationType() == RuntimeConfigurationType.DEPLOYMENT) {
      long startupTime = startupBean.getStartupTime();
      String suffix = "?" + startupTime;
      response.render(JavaScriptHeaderItem.forUrl("static/all.js" + suffix));
      response.render(CssHeaderItem.forUrl("static/all.css" + suffix));
    } else {
      response.render(JavaScriptHeaderItem.forUrl("wro/lib.js"));
      response.render(CssHeaderItem.forUrl("wro/lib.css"));
      response.render(CssHeaderItem.forUrl("wro/app.css"));

      response.render(JavaScriptHeaderItem.forUrl("js/welcome.js"));
      response.render(JavaScriptHeaderItem.forUrl("js/main.js"));
      response.render(JavaScriptHeaderItem.forUrl("js/controllers.js"));
      response.render(JavaScriptHeaderItem.forUrl("js/directives.js"));
      response.render(JavaScriptHeaderItem.forUrl("js/filters.js"));
      response.render(JavaScriptHeaderItem.forUrl("js/services.js"));
    }

    if (StringUtils.isNotBlank(settings.getGoogleAnalyticsTrackingCode())) {
      Map<String, Object> vars = Maps.newHashMap();
      vars.put("trackingCode", settings.getGoogleAnalyticsTrackingCode());
      WicketUtils.loadJS(response, BasePage.class, "analytics", vars);
    }
  }
コード例 #2
0
 @Override
 public void renderHead(IHeaderResponse response) {
   ResourceReference jQueryReference =
       this.application.getJavaScriptLibrarySettings().getJQueryReference();
   response.render(JavaScriptHeaderItem.forReference(jQueryReference));
   response.render(JavaScriptHeaderItem.forUrl("js/bootstrap.js", "bootstrap-js"));
 }
コード例 #3
0
 /**
  * @see
  *     jabara.it_inoculation_questions.web.ui.page.ItInoculationQuestionsWebPageBase#renderHead(org.apache.wicket.markup.head.IHeaderResponse)
  */
 @Override
 public void renderHead(final IHeaderResponse pResponse) {
   super.renderHead(pResponse);
   addPageCssReference(pResponse);
   pResponse.render(
       JavaScriptHeaderItem.forUrl("http://code.jquery.com/jquery-1.9.1.min.js")); // $NON-NLS-1$
 }
コード例 #4
0
ファイル: SettingsPage.java プロジェクト: stelladream/sakai
  @Override
  public void renderHead(final IHeaderResponse response) {
    super.renderHead(response);

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

    response.render(
        CssHeaderItem.forUrl(
            String.format("/gradebookng-tool/styles/gradebook-settings.css?version=%s", version)));
    response.render(
        JavaScriptHeaderItem.forUrl(
            String.format("/gradebookng-tool/scripts/gradebook-settings.js?version=%s", version)));
  }
コード例 #5
0
ファイル: ReportsPage.java プロジェクト: yllyx/sakai
 @Override
 public void renderHead(IHeaderResponse response) {
   super.renderHead(response);
   response.render(JavaScriptHeaderItem.forUrl(JQUERYSCRIPT));
 }