use of org.apache.syncope.client.console.wicket.markup.html.form.JsonDiffPanel in project syncope by apache.
the class HistoryConfDetails method showConfigurationDiffPanel.
private void showConfigurationDiffPanel(final List<T> historyConfTOs) {
List<Pair<String, String>> infos = new ArrayList<>();
historyConfTOs.forEach(historyConfTO -> {
infos.add(getJSONInfo(historyConfTO));
});
jsonPanel = new JsonDiffPanel(null, new PropertyModel<String>(infos.get(0), "value"), new PropertyModel<String>(infos.get(1), "value"), null) {
private static final long serialVersionUID = -8927036362466990179L;
@Override
public void onSubmit(final AjaxRequestTarget target, final Form<?> form) {
modal.close(target);
}
};
replace(jsonPanel);
}
Aggregations