org.apache.wicket.markup.html.WebPage.renderHead()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(8.8k)|赞(0)|评价(0)|浏览(132)

本文整理了Java中org.apache.wicket.markup.html.WebPage.renderHead()方法的一些代码示例,展示了WebPage.renderHead()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebPage.renderHead()方法的具体详情如下:
包路径:org.apache.wicket.markup.html.WebPage
类名称:WebPage
方法名:renderHead

WebPage.renderHead介绍

暂无

代码示例

代码示例来源:origin: org.apache.wicket/wicket-examples-jar

@Override
  public void renderHead(IHeaderResponse response) {
    super.renderHead(response);
//        Bootstrap.renderHead(response);
//        response.render(CssHeaderItem.forCSS(
//                "body { padding-top: 60px; padding-bottom: 40px; }",
//                "custom-wicket-examples"));
  }
}

代码示例来源:origin: org.wicketstuff/wicketstuff-calendarviews

@Override
  public void renderHead(IHeaderResponse response)
  {
    super.renderHead(response);

    response.renderCSSReference(BaseCalendarView.CALENDARS_CSS_REFERENCE);
  }
}

代码示例来源:origin: apache/syncope

@Override
public void renderHead(final IHeaderResponse response) {
  super.renderHead(response);
  response.render(new PriorityHeaderItem(META_IE_EDGE));
}

代码示例来源:origin: org.apache.wicket/wicket-core

@Override
public void renderHead(IHeaderResponse response)
{
  super.renderHead(response);
  response.render(OnLoadHeaderItem.forScript(
      String.format("Wicket.BrowserInfo.submitForm('%s')", browserInfoForm.getFormMarkupId())));
}

代码示例来源:origin: apache/wicket

@Override
public void renderHead(IHeaderResponse response)
{
  super.renderHead(response);
  response.render(OnLoadHeaderItem.forScript(
      String.format("Wicket.BrowserInfo.submitForm('%s')", browserInfoForm.getFormMarkupId())));
}

代码示例来源:origin: org.opensingular/singular-requirement-module

@Override
public void renderHead(IHeaderResponse response) {
  super.renderHead(response);
  response.render(JavaScriptReferenceHeaderItem.forReference(new PackageResourceReference(ServerTemplate.class, "singular.js")));
}

代码示例来源:origin: org.opensingular/singular-server-module

@Override
public void renderHead(IHeaderResponse response) {
  super.renderHead(response);
  response.render(JavaScriptReferenceHeaderItem.forReference(new PackageResourceReference(ServerTemplate.class, "singular.js")));
}

代码示例来源:origin: org.opensingular/server-module

@Override
public void renderHead(IHeaderResponse response) {
  super.renderHead(response);
  response.render(JavaScriptReferenceHeaderItem.forReference(new PackageResourceReference(Template.class, "singular.js")));
}

代码示例来源:origin: org.opensingular/singular-form-wicket

@Override
public void renderHead(IHeaderResponse response) {
  super.renderHead(response);
  try (PackageTextTemplate packageTextTemplate = new PackageTextTemplate(getClass(), "RichTextNewTabPage.js")) {
    final Map<String, String> params = new HashMap<>();
    /*If don't contains the View, i add a view with empty buttons, for default use.*/
    if (!viewSupplier.optional().isPresent()) {
      viewSupplier = (ISupplier<SViewByRichTextNewTab>) SViewByRichTextNewTab::new;
      getLogger().info("SViewByRichTextNewTab was insert in the RichTextNewTabPage.");
    }
    params.put("submitButtonId", submitButton.getMarkupId());
    params.put("classDisableDoubleClick", viewSupplier.get()
        .getConfiguration()
        .getDoubleClickDisabledClasses()
        .stream()
        .reduce(new StringBuilder(), (s, b) -> s.append(b).append(", "), StringBuilder::append).toString());
    params.put("hiddenInput", this.hiddenInput.getMarkupId());
    params.put("showSaveButton", String.valueOf(this.viewSupplier.get().isShowSaveButton()));
    params.put("htmlContainer", this.markupId);
    params.put("callbackUrl", eventSaveCallbackBehavior.getCallbackUrl().toString());
    params.put("isEnabled", String.valueOf(!readOnly));
    params.put("buttonsList", this.renderButtonsList());
    packageTextTemplate.interpolate(params);
    response.render(JavaScriptHeaderItem.forScript(packageTextTemplate.getString(), this.getId()));
  } catch (IOException e) {
    getLogger().error(e.getMessage(), e);
  }
  RecursosStaticosSingularTemplate.getStyles("singular").forEach(response::render);
  RecursosStaticosSingularTemplate.getJavaScriptsUrls().forEach(response::render);
}

代码示例来源:origin: org.jabylon/rest.ui

@Override
public void renderHead(IHeaderResponse response) {
  response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(GlobalResources.JS_BOOTSTRAP)));
  response.render(CssHeaderItem.forReference(GlobalResources.MAIN_CSS));
  super.renderHead(response);
}

代码示例来源:origin: org.opensingular/server-core

@Override
public void renderHead(IHeaderResponse response) {
  super.renderHead(response);
  response.render(CssHeaderItem.forReference(new CssResourceReference(LoginPage.class, "LoginPage.css")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(LoginPage.class, "LoginPage.js")));
}

代码示例来源:origin: org.apache.wicket/wicket-examples-jar

@Override
public void renderHead(IHeaderResponse response)
{
  super.renderHead(response);
  Bootstrap.renderHeadResponsive(response);
  Prettify.renderHead(response);
  response.render(CssHeaderItem.forReference(new CssResourceReference(AbstractBasePage.class,
    "docs.css")));
  response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(
    AbstractBasePage.class, "examples.js")));
}

代码示例来源:origin: micromata/projectforge

@Override
public void renderHead(final IHeaderResponse response)
{
 super.renderHead(response);
 response.render(StringHeaderItem
   .forString(WicketUtils.getCssForFavicon(getUrl(configService.getServletContextPath() + "/favicon.ico"))));
 WicketRenderHeadUtils.renderMainCSSIncludes(response);
 //response.renderCSSReference();
 WicketRenderHeadUtils.renderMainJavaScriptIncludes(response);
 initializeContextMenu(response);
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

renderHead(header);

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

renderHead(header);

代码示例来源:origin: org.jabylon/rest.ui

@Override
public void renderHead(IHeaderResponse response) {
  response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(JabylonApplication.get().getJavaScriptLibrarySettings().getJQueryReference())));
  response.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(GlobalResources.JS_BOOTSTRAP)));
  response.render(CssHeaderItem.forReference(GlobalResources.MAIN_CSS));
  response.render(new FaviconHeaderItem(GlobalResources.IMG_JABYLON_FAVICON));
  super.renderHead(response);
}

代码示例来源:origin: MarcGiffing/wicket-spring-boot

@Override
public void renderHead(IHeaderResponse response) {
  super.renderHead(response);
  
  response.render(JavaScriptHeaderItem.forReference(getApplication().getJavaScriptLibrarySettings().getJQueryReference()));
  response.render(JavaScriptHeaderItem.forReference(getApplication().getJavaScriptLibrarySettings().getWicketEventReference()));
  response.render(JavaScriptHeaderItem.forReference(getApplication().getJavaScriptLibrarySettings().getWicketAjaxReference()));
  
  String bootstrapPrefixPath = "bootstrap/current";
  response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference(bootstrapPrefixPath + "/js/bootstrap.js")));
  response.render(CssHeaderItem.forReference(new WebjarsJavaScriptResourceReference(bootstrapPrefixPath + "/css/bootstrap.css")));
}

代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-webapp-home

@Override
public void renderHead(IHeaderResponse aResponse)
  super.renderHead(aResponse);

代码示例来源:origin: micromata/projectforge

@Override
public void renderHead(final IHeaderResponse response)
{
 super.renderHead(response);
 response.render(JavaScriptReferenceHeaderItem
   .forReference(Application.get().getJavaScriptLibrarySettings().getJQueryReference()));
 response.render(StringHeaderItem
   .forString(WicketUtils.getCssForFavicon(getUrl(configService.getServletContextPath() + "/favicon.ico"))));
 if (WebConfiguration.isDevelopmentMode() == true) {
  response.render(CssReferenceHeaderItem.forUrl(
    "mobile/jquery.mobile-" + JQUERY_MOBILE_VERSION + "/jquery.mobile-" + JQUERY_MOBILE_VERSION + ".css"));
 } else {
  response.render(CssReferenceHeaderItem.forUrl(
    "mobile/jquery.mobile-" + JQUERY_MOBILE_VERSION + "/jquery.mobile-" + JQUERY_MOBILE_VERSION + ".min.css"));
 }
 response.render(CssReferenceHeaderItem.forUrl("mobile/projectforge.css"));
 response
   .render(JavaScriptReferenceHeaderItem.forUrl("mobile/jquery.mobile-" + JQUERY_MOBILE_VERSION + "/myconfig.js"));
 if (WebConfiguration.isDevelopmentMode() == true) {
  // response.renderJavaScriptReference("mobile/jquery.mobile/myconfig.js");
  response.render(JavaScriptReferenceHeaderItem
    .forUrl("mobile/jquery.mobile-" + JQUERY_MOBILE_VERSION + "/jquery.mobile-" + JQUERY_MOBILE_VERSION + ".js"));
 } else {
  // response.renderJavaScriptReference("mobile/jquery.mobile/myconfig.js");
  response.render(JavaScriptReferenceHeaderItem.forUrl(
    "mobile/jquery.mobile-" + JQUERY_MOBILE_VERSION + "/jquery.mobile-" + JQUERY_MOBILE_VERSION + ".min.js"));
 }
}

相关文章