Example usage for org.apache.wicket.markup.html.form Form getId

List of usage examples for org.apache.wicket.markup.html.form Form getId

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.form Form getId.

Prototype

@Override
public String getId() 

Source Link

Document

Gets the id of this component.

Usage

From source file:au.org.theark.core.web.component.AbstractModalWindowContentPanel.java

License:Open Source License

protected void initialise() {
    setOutputMarkupId(true);/*from  w  ww  .ja va  2 s.com*/
    if (form == null) {
        Form form = new Form("detailForm");
        add(form);
    } else {
        form.getId();
        addOrReplace(form);
    }
}

From source file:org.opensingular.lib.wicket.util.panel.FormPanel.java

License:Apache License

public FormPanel(String id, Form<?> form) {
    super(id, () -> "<form wicket:id='" + form.getId() + "'><div wicket:id='" + ID_FORM_BODY
            + "'></div><wicket:child/></form>");
    add(form.add(newFormBody(ID_FORM_BODY)));
}