You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by sk...@apache.org on 2019/11/08 09:37:04 UTC
[syncope] branch master updated: [SYNCOPE-1505] Changes to
AjaxPalettePanel components in Console are now saved when the previous step
button is before submitting the wizard form
This is an automated email from the ASF dual-hosted git repository.
skylark17 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new 553b33a [SYNCOPE-1505] Changes to AjaxPalettePanel components in Console are now saved when the previous step button is before submitting the wizard form
553b33a is described below
commit 553b33a46a2b2b2f6219b4a8c1512009e8306c3f
Author: skylark17 <ma...@tirasa.net>
AuthorDate: Fri Nov 8 09:40:55 2019 +0100
[SYNCOPE-1505] Changes to AjaxPalettePanel components in Console are now saved when the previous step button is before submitting the wizard form
---
.../ui/commons/markup/html/form/AjaxPalettePanel.java | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/markup/html/form/AjaxPalettePanel.java b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/markup/html/form/AjaxPalettePanel.java
index 818dd77..9256e65 100644
--- a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/markup/html/form/AjaxPalettePanel.java
+++ b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/markup/html/form/AjaxPalettePanel.java
@@ -28,6 +28,8 @@ import java.util.Map;
import java.util.regex.Pattern;
import org.apache.commons.collections4.ListUtils;
import org.apache.commons.lang3.StringUtils;
+import org.apache.syncope.client.ui.commons.Constants;
+import org.apache.syncope.client.ui.commons.ajax.form.IndicatorAjaxFormComponentUpdatingBehavior;
import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink;
@@ -108,7 +110,7 @@ public class AjaxPalettePanel<T extends Serializable> extends AbstractFieldPanel
@Override
protected Recorder<T> newRecorderComponent() {
- return new Recorder<T>("recorder", this) {
+ Recorder<T> recorder = new Recorder<T>("recorder", this) {
private static final long serialVersionUID = -9169109967480083523L;
@@ -155,6 +157,17 @@ public class AjaxPalettePanel<T extends Serializable> extends AbstractFieldPanel
return selected;
}
};
+ recorder.add(new IndicatorAjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
+
+ private static final long serialVersionUID = -6139318907146065915L;
+
+ @Override
+ protected void onUpdate(final AjaxRequestTarget target) {
+ processInput();
+ }
+ });
+
+ return recorder;
}
};