You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2020/05/12 15:19:35 UTC

[syncope] branch master updated: Fixing weird behavior with autocomplete and search by clicking on magnifier icon

This is an automated email from the ASF dual-hosted git repository.

ilgrosso 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 ebd39df  Fixing weird behavior with autocomplete and search by clicking on magnifier icon
ebd39df is described below

commit ebd39dfd562e8d773e1fe71bae3fbe275602d5b7
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Tue May 12 17:12:46 2020 +0200

    Fixing weird behavior with autocomplete and search by clicking on magnifier icon
---
 .../client/console/panels/search/SearchClausePanel.java     | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/search/SearchClausePanel.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/search/SearchClausePanel.java
index 90142a8..759406f 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/search/SearchClausePanel.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/search/SearchClausePanel.java
@@ -53,7 +53,7 @@ import org.apache.wicket.ajax.AjaxEventBehavior;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.attributes.AjaxCallListener;
 import org.apache.wicket.ajax.attributes.AjaxRequestAttributes;
-import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink;
+import org.apache.wicket.ajax.markup.html.AjaxLink;
 import org.apache.wicket.event.Broadcast;
 import org.apache.wicket.event.IEventSink;
 import org.apache.wicket.extensions.markup.html.repeater.util.SortParam;
@@ -153,7 +153,7 @@ public class SearchClausePanel extends FieldPanel<SearchClause> {
 
     private final Fragment searchButtonFragment;
 
-    private final AjaxSubmitLink searchButton;
+    private final AjaxLink<Void> searchButton;
 
     private IEventSink resultContainer;
 
@@ -187,14 +187,14 @@ public class SearchClausePanel extends FieldPanel<SearchClause> {
         this.privilegeNames = privilegeNames;
         this.resourceNames = resourceNames;
 
-        searchButton = new AjaxSubmitLink("search") {
+        searchButton = new AjaxLink<Void>("search") {
 
             private static final long serialVersionUID = 5538299138211283825L;
 
             @Override
-            protected void onSubmit(final AjaxRequestTarget target) {
+            public void onClick(final AjaxRequestTarget target) {
                 if (resultContainer == null) {
-                    send(this, Broadcast.BUBBLE, new SearchEvent(target));
+                    send(SearchClausePanel.this, Broadcast.BUBBLE, new SearchEvent(target));
                 } else {
                     send(resultContainer, Broadcast.EXACT, new SearchEvent(target));
                 }
@@ -211,7 +211,6 @@ public class SearchClausePanel extends FieldPanel<SearchClause> {
             private static final long serialVersionUID = -8204140666393922700L;
 
         };
-
         add(field);
 
         comparators = new LoadableDetachableModel<List<Comparator>>() {
@@ -418,7 +417,7 @@ public class SearchClausePanel extends FieldPanel<SearchClause> {
         }
 
         AjaxTextFieldPanel property = new AjaxTextFieldPanel(
-                "property", "property", new PropertyModel<>(searchClause, "property"), true) ;
+                "property", "property", new PropertyModel<>(searchClause, "property"), true);
         property.hideLabel().setOutputMarkupId(true).setEnabled(true);
         property.setChoices(properties.getObject());
         field.add(property);