예제 #1
0
  private void addValue(AjaxRequestTarget target) {
    FieldModel fieldModel = model.getObject().getField();
    fieldModel.addValue();

    ListView listView = findParent(ListView.class);
    target.add(listView.getParent());
  }
예제 #2
0
  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());
  }