List of usage examples for org.apache.wicket.markup.html.form Form replace
public MarkupContainer replace(final Component child)
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()); } }