syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmarte...@apache.org
Subject syncope git commit: [SYNCOPE-930] remove useless and invalid events
Date Mon, 05 Sep 2016 08:36:34 GMT
Repository: syncope
Updated Branches:
  refs/heads/master 03c096cf8 -> b69e4cf5e


[SYNCOPE-930] remove useless and invalid events


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/b69e4cf5
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/b69e4cf5
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/b69e4cf5

Branch: refs/heads/master
Commit: b69e4cf5ed70d7f058a6213cfb409a705f8b74a8
Parents: 03c096c
Author: fmartelli <fabio.martelli@gmail.com>
Authored: Mon Sep 5 10:05:09 2016 +0200
Committer: fmartelli <fabio.martelli@gmail.com>
Committed: Mon Sep 5 10:05:09 2016 +0200

----------------------------------------------------------------------
 .../markup/html/form/AbstractMultiPanel.java      | 18 ------------------
 .../wicket/markup/html/form/MultiFieldPanel.java  |  8 +-------
 2 files changed, 1 insertion(+), 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/b69e4cf5/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/AbstractMultiPanel.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/AbstractMultiPanel.java
b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/AbstractMultiPanel.java
index b59e14c..ecac451 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/AbstractMultiPanel.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/AbstractMultiPanel.java
@@ -24,7 +24,6 @@ import org.apache.syncope.client.console.commons.Constants;
 import org.apache.syncope.client.console.pages.BasePage;
 import org.apache.syncope.client.console.wicket.ajax.markup.html.IndicatorAjaxSubmitLink;
 import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.event.Broadcast;
 import org.apache.wicket.markup.html.WebMarkupContainer;
 import org.apache.wicket.markup.html.basic.Label;
 import org.apache.wicket.markup.html.form.Form;
@@ -134,19 +133,6 @@ public abstract class AbstractMultiPanel<INNER> extends AbstractFieldPanel<List<
         return this;
     }
 
-    public static class MultiValueSelectorEvent {
-
-        private final AjaxRequestTarget target;
-
-        public MultiValueSelectorEvent(final AjaxRequestTarget target) {
-            this.target = target;
-        }
-
-        public AjaxRequestTarget getTarget() {
-            return target;
-        }
-    }
-
     protected abstract INNER newModelObject();
 
     private final class InnerView extends ListView<INNER> {
@@ -185,10 +171,6 @@ public abstract class AbstractMultiPanel<INNER> extends AbstractFieldPanel<List<
                     }
 
                     target.add(container);
-
-                    if (eventTemplate) {
-                        send(getPage(), Broadcast.BREADTH, new MultiValueSelectorEvent(target));
-                    }
                 }
 
                 @Override

http://git-wip-us.apache.org/repos/asf/syncope/blob/b69e4cf5/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/MultiFieldPanel.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/MultiFieldPanel.java
b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/MultiFieldPanel.java
index bcd5c17..effe436 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/MultiFieldPanel.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/MultiFieldPanel.java
@@ -23,7 +23,6 @@ import java.util.List;
 import org.apache.syncope.client.console.commons.Constants;
 import org.apache.syncope.client.console.wicket.ajax.form.IndicatorAjaxFormComponentUpdatingBehavior;
 import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.event.Broadcast;
 import org.apache.wicket.markup.html.list.ListItem;
 import org.apache.wicket.markup.html.panel.Panel;
 import org.apache.wicket.model.IModel;
@@ -32,17 +31,13 @@ public abstract class MultiFieldPanel<E extends Serializable> extends
AbstractMu
 
     private static final long serialVersionUID = -6322397761456513324L;
 
-    private final FieldPanel<? extends Serializable> panelTemplate;
-
     private MultiFieldPanel(
             final String id,
             final String name,
             final IModel<List<E>> model,
-            final FieldPanel<? extends Serializable> panelTemplate,
             final boolean eventTemplate) {
 
         super(id, name, model, eventTemplate);
-        this.panelTemplate = panelTemplate;
     }
 
     public static class Builder<E extends Serializable> implements Serializable {
@@ -79,7 +74,7 @@ public abstract class MultiFieldPanel<E extends Serializable> extends
AbstractMu
         }
 
         public MultiFieldPanel<E> build(final String id, final String name, final FieldPanel<E>
panelTemplate) {
-            return new MultiFieldPanel<E>(id, name, model, panelTemplate, eventTemplate)
{
+            return new MultiFieldPanel<E>(id, name, model, eventTemplate) {
 
                 private static final long serialVersionUID = 6600411297376841521L;
 
@@ -103,7 +98,6 @@ public abstract class MultiFieldPanel<E extends Serializable> extends
AbstractMu
 
                             @Override
                             protected void onUpdate(final AjaxRequestTarget target) {
-                                send(getPage(), Broadcast.BREADTH, new MultiValueSelectorEvent(target));
                             }
                         });
                     }


Mime
View raw message