diff --git a/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/component/LoggingConfigPanel.html b/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/component/LoggingConfigPanel.html
index 69890a0cde0..7e69a3c32e1 100644
--- a/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/component/LoggingConfigPanel.html
+++ b/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/component/LoggingConfigPanel.html
@@ -120,6 +120,8 @@
+
+
diff --git a/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/component/LoggingConfigPanel.java b/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/component/LoggingConfigPanel.java
index f6a022a1894..c0eda5b04da 100644
--- a/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/component/LoggingConfigPanel.java
+++ b/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/configuration/component/LoggingConfigPanel.java
@@ -20,7 +20,6 @@
import com.evolveum.midpoint.schema.result.OperationResult;
import com.evolveum.midpoint.task.api.Task;
import com.evolveum.midpoint.web.component.AjaxButton;
-import com.evolveum.midpoint.web.component.DropDownMultiChoice;
import com.evolveum.midpoint.web.component.data.TablePanel;
import com.evolveum.midpoint.web.component.data.column.*;
import com.evolveum.midpoint.web.component.input.DropDownChoicePanel;
@@ -31,8 +30,8 @@
import com.evolveum.midpoint.web.component.util.ListDataProvider;
import com.evolveum.midpoint.web.component.util.LoadableModel;
import com.evolveum.midpoint.web.component.util.SimplePanel;
-import com.evolveum.midpoint.web.page.admin.configuration.PageSystemConfiguration;
import com.evolveum.midpoint.web.page.admin.configuration.dto.*;
+import com.evolveum.midpoint.web.util.InfoTooltipBehavior;
import com.evolveum.midpoint.web.util.WebMiscUtil;
import com.evolveum.midpoint.xml.ns._public.common.common_3.*;
@@ -45,13 +44,12 @@
import org.apache.wicket.behavior.AttributeAppender;
import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
import org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider;
+import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.*;
import org.apache.wicket.model.AbstractReadOnlyModel;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.PropertyModel;
-import org.w3c.dom.html.HTMLTableElement;
-
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -64,7 +62,6 @@ public class LoggingConfigPanel extends SimplePanel {
private static final String DOT_CLASS = LoggingConfigPanel.class.getName() + ".";
private static final String OPERATION_LOAD_LOGGING_CONFIGURATION = DOT_CLASS + "loadLoggingConfiguration";
- private static final String OPERATION_UPDATE_LOGGING_CONFIGURATION = DOT_CLASS + "updateLoggingConfiguration";
private static final String ID_LOGGERS_TABLE = "loggersTable";
private static final String ID_ROOT_LEVEL = "rootLevel";
@@ -74,6 +71,7 @@ public class LoggingConfigPanel extends SimplePanel {
private static final String ID_BUTTON_ADD_FILE_APPENDER = "addFileAppender";
private static final String ID_BUTTON_DELETE_APPENDER = "deleteAppender";
private static final String ID_BUTTON_ADD_STANDARD_LOGGER = "addStandardLogger";
+ private static final String ID_DUMP_INTERVAL_TOOLTIP = "dumpIntervalTooltip";
public LoggingConfigPanel(String id) {
super(id, null);
@@ -130,9 +128,9 @@ protected void initLayout() {
private void initLoggers() {
initRoot();
- ISortableDataProvider provider = new ListDataProvider(this,
+ ISortableDataProvider provider = new ListDataProvider<>(this,
new PropertyModel>(getModel(), "loggers"));
- TablePanel table = new TablePanel(ID_LOGGERS_TABLE, provider, initLoggerColumns());
+ TablePanel table = new TablePanel<>(ID_LOGGERS_TABLE, provider, initLoggerColumns());
table.setOutputMarkupId(true);
table.setShowPaging(false);
add(table);
@@ -181,13 +179,13 @@ public void onClick(AjaxRequestTarget target) {
}
private void initRoot() {
- DropDownChoice rootLevel = new DropDownChoice(ID_ROOT_LEVEL,
+ DropDownChoice rootLevel = new DropDownChoice<>(ID_ROOT_LEVEL,
new PropertyModel(getModel(), LoggingDto.F_ROOT_LEVEL),
WebMiscUtil.createReadonlyModelFromEnum(LoggingLevelType.class));
add(rootLevel);
- DropDownChoice rootAppender = new DropDownChoice(ID_ROOT_APPENDER,
+ DropDownChoice rootAppender = new DropDownChoice<>(ID_ROOT_APPENDER,
new PropertyModel(getModel(), LoggingDto.F_ROOT_APPENDER), createAppendersListModel());
rootAppender.setNullValid(true);
rootAppender.add(new OnChangeAjaxBehavior() {
@@ -207,7 +205,7 @@ private void initAudit(){
CheckBox auditDetails = new CheckBox("auditDetails", new PropertyModel(getModel(), "auditDetails"));
add(auditDetails);
- DropDownChoice auditAppender = new DropDownChoice("auditAppender", new PropertyModel(
+ DropDownChoice auditAppender = new DropDownChoice<>("auditAppender", new PropertyModel(
getModel(), "auditAppender"), createAppendersListModel());
auditAppender.setNullValid(true);
add(auditAppender);
@@ -215,13 +213,13 @@ private void initAudit(){
private void initProfiling(){
//Entry-Exit profiling init
- DropDownChoice profilingLevel = new DropDownChoice("profilingLevel",
+ DropDownChoice profilingLevel = new DropDownChoice<>("profilingLevel",
new PropertyModel(getModel(), "profilingLevel"),
WebMiscUtil.createReadonlyModelFromEnum(ProfilingLevel.class),
- new EnumChoiceRenderer(this));
+ new EnumChoiceRenderer(this));
add(profilingLevel);
- DropDownChoice profilingAppender = new DropDownChoice("profilingAppender",
+ DropDownChoice profilingAppender = new DropDownChoice<>("profilingAppender",
new PropertyModel(getModel(), "profilingAppender"), createAppendersListModel());
profilingAppender.setNullValid(true);
add(profilingAppender);
@@ -246,9 +244,13 @@ private void initProfiling(){
add(subsystemTaskManager);
add(subsystemWorkflow);
- TextField dumpInterval = new TextField("dumpInterval", new PropertyModel(getModel(),
+ TextField dumpInterval = new TextField<>("dumpInterval", new PropertyModel(getModel(),
"dumpInterval"));
add(dumpInterval);
+
+ Label dumpIntervalTooltip = new Label(ID_DUMP_INTERVAL_TOOLTIP);
+ dumpIntervalTooltip.add(new InfoTooltipBehavior());
+ add(dumpIntervalTooltip);
}
private void addStandardLoggerPerformed(AjaxRequestTarget target){
@@ -287,7 +289,7 @@ private TablePanel getAppendersTable(){
}
private List> initLoggerColumns() {
- List> columns = new ArrayList>();
+ List> columns = new ArrayList<>();
IColumn column = new CheckBoxHeaderColumn();
columns.add(column);
@@ -342,7 +344,7 @@ public String getIdValue(LoggingComponentType item, int index) {
return dropDownChoicePanel;
} else {
- TextPanel textPanel = new TextPanel(componentId, new PropertyModel(model, getPropertyExpression()));
+ TextPanel textPanel = new TextPanel<>(componentId, new PropertyModel(model, getPropertyExpression()));
FormComponent input = textPanel.getBaseFormComponent();
input.add(new AttributeAppender("style", "width: 100%"));
input.add(new EmptyOnBlurAjaxFormUpdatingBehaviour());
@@ -415,7 +417,7 @@ protected String load() {
@Override
protected InputPanel createInputPanel(String componentId, IModel model) {
IModel