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

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

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

WebPage.onInitialize介绍

暂无

代码示例

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

@Override
protected void onInitialize()
{
  super.onInitialize();
  add(getTestPanel(TEST_PANEL_ID));
}

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

@Override
protected void onInitialize()
{
  super.onInitialize();
  add(getTestPanel(TEST_PANEL_ID));
}

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

@Override
protected void onInitialize()
{
  super.onInitialize();
  add(new Label("title", PropertyModel.of(this, "title")).setEscapeModelStrings(false));
}

代码示例来源:origin: org.jbehave.web/jbehave-web-runner

@Override
protected void onInitialize() {
  super.onInitialize();
  add(new Label("title", new PropertyModel<String>(this, "pageTitle")));
  explain();
}

代码示例来源:origin: jbehave/jbehave-web

@Override
protected void onInitialize() {
  super.onInitialize();
  add(new Label("title", new PropertyModel<String>(this, "pageTitle")));
  explain();
}

代码示例来源:origin: bitstorm/Wicket-tutorial-examples

@Override
  protected void onInitialize() 
  {
    super.onInitialize();
    
    BookmarkablePageLink<Void> link = new BookmarkablePageLink<Void>("sources",
      SourcesPage.class, SourcesPage.generatePageParameters(this));
    add(link);

    PopupSettings settings = new PopupSettings("sources", PopupSettings.RESIZABLE);
    settings.setWidth(800);
    settings.setHeight(600);
    link.setPopupSettings(settings);
    
    final String packageName = getClass().getPackage().getName();
    add(new Label("mainNavigation", Strings.afterLast(packageName, '.')));
  }
}

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

@Override
protected void onInitialize() {
  super.onInitialize();
  getApplication().setHeaderResponseDecorator(JAVASCRIPT_DECORATOR);
  /*Essa estratégia é utilizada para garantir que o jquery será sempre carregado pois está fixo no html
   * sem esse artificio páginas sem componentes ajax do wicket apresentarão erros de javascript.*/
  getApplication()
      .getJavaScriptLibrarySettings()
      .setJQueryReference(new PackageResourceReference(SingularTemplate.class, "empty.js"));
  add(new Label("pageTitle", getPageTitleModel()));
  add(new HeaderResponseContainer(JAVASCRIPT_CONTAINER, JAVASCRIPT_CONTAINER));
  add(new KeepSessionAliveBehavior());
}

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

@Override
protected void onInitialize() {
  super.onInitialize();
  getApplication().setHeaderResponseDecorator(JAVASCRIPT_DECORATOR);
  /*Essa estratégia é utilizada para garantir que o jquery será sempre carregado pois está fixo no html
  * sem esse artificio páginas sem componentes ajax do wicket apresentarão erros de javascript.*/
  getApplication()
      .getJavaScriptLibrarySettings()
      .setJQueryReference(new PackageResourceReference(SingularTemplate.class, "empty.js"));
  add(new Label("pageTitle", new ResourceModel(getPageTitleLocalKey())));
  add(new HeaderResponseContainer(JAVASCRIPT_CONTAINER, JAVASCRIPT_CONTAINER));
  add(new KeepSessionAliveBehaviour());
}

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

@Override
protected void onInitialize() {
  super.onInitialize();
  Form form = new Form("form");
  createTextArea(form);
  createSubmitButton(form);
  createModal(form);
  createCallBackBehavior();
  add(form);
  getApplication().setHeaderResponseDecorator(JAVASCRIPT_DECORATOR);
  add(new HeaderResponseContainer(JAVASCRIPT_CONTAINER, JAVASCRIPT_CONTAINER));
}

代码示例来源:origin: theonedev/onedev

@Override
protected void onInitialize() {
  super.onInitialize();

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

@Override
protected void onInitialize() {
  super.onInitialize();
  WebMarkupContainer loginForm = new WebMarkupContainer("form");
  loginForm.add($b.attr("action", SecurityUtil.getLoginPath()));
  add(loginForm);
  WebMarkupContainer loginError = new WebMarkupContainer("loginErrorC");
  loginError.setVisible(getPageParameters().get("error").toBoolean(false));
  loginError.add(new Label("loginError", getString("label.login.error")));
  loginForm.add(loginError);
  loginForm.add(new WebMarkupContainer("username").add($b.attr("placeholder", getString("label.login.page.username"))));
  loginForm.add(new WebMarkupContainer("password").add($b.attr("placeholder", getString("label.login.page.password"))));
  WebMarkupContainer ownerLink = new WebMarkupContainer("ownerLink");
  ownerLink.add(new AttributeModifier("href", new ResourceModel("footer.product.owner.addr")));
  ownerLink.add(new AttributeModifier("title", new ResourceModel("footer.product.owner.title")));
  add(ownerLink);
}

相关文章