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

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

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

WebPage.onConfigure介绍

暂无

代码示例

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

@Override
  protected void onConfigure() {
    super.onConfigure();
    WebMarkupContainer container = new WebMarkupContainer("output") {
      @Override
      public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) {
        try {
          CharArrayWriter baos = new CharArrayWriter(0);
          DocumentationDefinitionResolver.get().renderDocumentationHTML(typeLoader.loadTypeOrException(stypeClass), baos);
          replaceComponentTagBody(markupStream, openTag, baos.toString());
        } catch (Exception e) {
          throw SingularException.rethrow(e.getMessage(), e);
        }
      }
    };
    queue(container);
  }
}

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

@Override
  protected void onConfigure() {
    super.onConfigure();
    WebMarkupContainer container = new WebMarkupContainer("output") {
      @Override
      public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) {
        try {
          CharArrayWriter baos = new CharArrayWriter(0);
          DocumentationDefinitionResolver.get().renderDocumentationHTML(typeLoader.loadTypeOrException(stypeClass), baos);
          replaceComponentTagBody(markupStream, openTag, baos.toString());
        } catch (Exception e) {
          throw SingularException.rethrow(e.getMessage(), e);
        }
      }
    };
    queue(container);
  }
}

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

@Override
  protected void onConfigure() {
    super.onConfigure();
    WebMarkupContainer container = new WebMarkupContainer("output") {
      @Override
      public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) {
        try {
          CharArrayWriter baos = new CharArrayWriter(0);
          DocumentationDefinitionResolver.get().renderDocumentationHTML(typeLoader.loadTypeOrException(stypeClass), baos);
          replaceComponentTagBody(markupStream, openTag, baos.toString());
        } catch (Exception e) {
          throw SingularException.rethrow(e.getMessage(), e);
        }
      }
    };
    queue(container);
  }
}

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

@Override
protected void onConfigure()
{
  super.onConfigure();
  logoutPanel.setVisible(AuthenticatedWebSession.get().isSignedIn());
}

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

@Override
protected void onConfigure() {
  super.onConfigure();
  // Clean up comments for comments older than one hour
  for (Comment comment : comments) {
    Time createdAt = Time.valueOf(comment.getCreatedAt());
    if (Duration.elapsed(createdAt).seconds() > 10) {
      comments.remove(comment);
    }
  }
}

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

@Override
protected void onConfigure()
{
  super.onConfigure();
  // Do not cache pages in development mode - allows us to make changes to the HMTL without
  // having to reload the application
  if (RuntimeConfigurationType.DEVELOPMENT.equals(getApplication().getConfigurationType())) {
    getApplication().getMarkupSettings().getMarkupFactory().getMarkupCache().clear();
    getApplication().getResourceSettings()
        .setCachingStrategy(NoOpResourceCachingStrategy.INSTANCE);
  }
}

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

@Override
protected void onConfigure()
{
  super.onConfigure();
  
  // Do not cache pages in development mode - allows us to make changes to the HMTL without
  // having to reload the application
  if (RuntimeConfigurationType.DEVELOPMENT.equals(getApplication().getConfigurationType())) {
    getApplication().getMarkupSettings().getMarkupFactory().getMarkupCache().clear();
    getApplication().getResourceSettings().setCachingStrategy(NoOpResourceCachingStrategy.INSTANCE);
  }
}

代码示例来源:origin: webanno/webanno

@Override
protected void onConfigure()
{
  super.onConfigure();
  // Do not cache pages in development mode - allows us to make changes to the HMTL without
  // having to reload the application
  if (RuntimeConfigurationType.DEVELOPMENT.equals(getApplication().getConfigurationType())) {
    getApplication().getMarkupSettings().getMarkupFactory().getMarkupCache().clear();
    getApplication().getResourceSettings()
        .setCachingStrategy(NoOpResourceCachingStrategy.INSTANCE);
  }
}

相关文章