Example usage for org.apache.wicket.markup.repeater RepeatingView removeAll

List of usage examples for org.apache.wicket.markup.repeater RepeatingView removeAll

Introduction

In this page you can find the example usage for org.apache.wicket.markup.repeater RepeatingView removeAll.

Prototype

public MarkupContainer removeAll() 

Source Link

Document

Removes all children from this container.

Usage

From source file:org.artifactory.webapp.wicket.page.config.layout.LayoutCreateUpdatePanel.java

License:Open Source License

private void updateCustomFields(RepeatingView customFieldsView, Map<String, String> customFields) {
    customFieldsView.removeAll();
    if (customFields != null) {
        for (Map.Entry<String, String> entry : customFields.entrySet()) {
            WebMarkupContainer container = new WebMarkupContainer(customFieldsView.newChildId());
            container.add(new Label("key", entry.getKey() + ":"));
            container.add(new Label("value", entry.getValue()));
            customFieldsView.add(container);
        }/*  w w w .  ja  va2s .  c o m*/
    }
}