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

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

Introduction

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

Prototype

public MarkupContainer replace(final Component child) 

Source Link

Document

Replaces a child component of this container with another

Usage

From source file:com.evolveum.midpoint.web.page.admin.users.component.AssignablePopupContent.java

License:Apache License

public void setType(Class<? extends ObjectType> type) {
    Validate.notNull(type, "Class must not be null.");

    this.type = type;

    TablePanel table = (TablePanel) get(ID_ASSIGNABLE_FORM + ":" + ID_TABLE);
    if (table != null) {
        ObjectDataProvider provider = (ObjectDataProvider) table.getDataTable().getDataProvider();
        provider.setType(type);//w w  w .  jav a  2 s. c o m

        //replace table with table with proper columns
        Form rolesForm = (Form) get(ID_ASSIGNABLE_FORM);
        rolesForm.replace(createTable());
    }
}