private void addConsoleAppenderPerformed(AjaxRequestTarget target) { LoggingDto dto = getModel().getObject(); AppenderConfiguration appender = new AppenderConfiguration(new AppenderConfigurationType()); appender.setEditing(true); dto.getAppenders().add(appender); target.add(getAppendersTable()); }
private void deleteAppenderPerformed(AjaxRequestTarget target) { Iterator<AppenderConfiguration> iterator = getModel().getObject().getAppenders().iterator(); while (iterator.hasNext()) { AppenderConfiguration item = iterator.next(); if (item.isSelected()) { iterator.remove(); } } target.add(getAppendersTable()); }
private void appenderEditPerformed( AjaxRequestTarget target, IModel<AppenderConfiguration> model) { AppenderConfiguration config = model.getObject(); config.setEditing(true); target.add(getAppendersTable()); }