List of usage examples for org.apache.wicket.markup.repeater RepeatingView removeAll
public MarkupContainer removeAll()
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*/ } }