本文整理了Java中org.apache.wicket.markup.html.WebPage.onInitialize()
方法的一些代码示例,展示了WebPage.onInitialize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebPage.onInitialize()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.WebPage
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!