@Override protected void onSubmit(final AjaxRequestTarget target, final Form<?> form) { position.deleteKostZuweisung(zuweisung.getIndex()); final StringBuffer prependJavascriptBuf = new StringBuffer(); prependJavascriptBuf.append(WicketAjaxUtils.removeChild("costAssignmentBody", row.getMarkupId())); ajaxComponents.remove(row); rows.remove(row); target.prependJavaScript(prependJavascriptBuf.toString()); }