private void addValue(AjaxRequestTarget target) { FieldModel fieldModel = model.getObject().getField(); fieldModel.addValue(); ListView listView = findParent(ListView.class); target.add(listView.getParent()); }
private void removeValue(AjaxRequestTarget target) { ValueModel valueModel = model.getObject(); FieldModel fieldModel = valueModel.getField(); fieldModel.removeValue(valueModel); ListView listView = findParent(ListView.class); target.add(listView.getParent()); }