From 5718645bc6b49e1d314a9982e487fd9322208201 Mon Sep 17 00:00:00 2001 From: hengsin Date: Sat, 30 May 2020 12:53:11 +0800 Subject: [PATCH] IDEMPIERE-1540 Autocomplete for field type "Search" (#89) Fix ClassCastException --- .../src/org/adempiere/webui/editor/WSearchEditor.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java index 01a1a03945..53f904f3b7 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java @@ -33,7 +33,6 @@ import org.adempiere.webui.adwindow.ADWindowContent; import org.adempiere.webui.adwindow.QuickGridTabRowRenderer; import org.adempiere.webui.apps.AEnv; import org.adempiere.webui.component.ComboEditorBox; -import org.adempiere.webui.component.Searchbox; import org.adempiere.webui.event.ContextMenuEvent; import org.adempiere.webui.event.ContextMenuListener; import org.adempiere.webui.event.DialogEvents; @@ -139,7 +138,7 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value */ public WSearchEditor (Lookup lookup, String label, String description, boolean mandatory, boolean readonly, boolean updateable) { - super(new Searchbox(), label, description, mandatory, readonly, updateable); + super(new CustomSearchBox() , label, description, mandatory, readonly, updateable); if (lookup == null) { @@ -155,7 +154,7 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value public WSearchEditor(String columnName, boolean mandatory, boolean readonly, boolean updateable, Lookup lookup) { - super(new Searchbox(), null, null, mandatory, readonly, updateable); + super(new CustomSearchBox(), null, null, mandatory, readonly, updateable); if (lookup == null) {