From ec8c384c5fb3920a601ceee550641df7c58bed1d Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sun, 23 Dec 2018 15:29:09 +0100 Subject: [PATCH 1/8] backout f018794 - IDEMPIERE-611 Zk: number editor popup auto close immediately. - seems like in newer versions of zk the previous patch was correct to get the focus on calculator and latest patch didn't get focus --- .../adempiere/webui/component/NumberBox.java | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/NumberBox.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/NumberBox.java index 27701017fb..97f11373e6 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/NumberBox.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/NumberBox.java @@ -28,7 +28,9 @@ import org.adempiere.webui.util.ZKUpdateUtil; import org.compiere.model.MSysConfig; import org.compiere.util.DisplayType; import org.compiere.util.Env; +import org.zkoss.zk.ui.HtmlBasedComponent; import org.zkoss.zk.ui.Page; +import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.Events; import org.zkoss.zul.Decimalbox; @@ -127,9 +129,20 @@ public class NumberBox extends Div btn.setImage(ThemeManager.getThemeResource("images/Calculator16.png")); btn.setTabindex(-1); ZKUpdateUtil.setHflex(btn, "0"); - btn.setWidgetListener("onClick", "try{var id=this.getPopup(); zk.Widget.$(id.substring(5, id.length - 1)).focus_(100);" + - "} catch(error) {}"); - + btn.addEventListener(Events.ON_CLICK, new EventListener() { + @Override + public void onEvent(Event event) throws Exception { + if (btn.getPopup() != null) { + String uid = btn.getPopup(); + if (uid.startsWith("uuid(")) + uid = uid.substring(5, uid.length()-1); + HtmlBasedComponent comp = (HtmlBasedComponent) btn.getDesktop().getComponentByUuidIfAny(uid); + if (comp != null) { + comp.focus(); + } + } + } + }); LayoutUtils.addSclass("editor-button", btn); appendChild(btn); From b74ed533578941cbd66fdb589fb05c957000be65 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sun, 23 Dec 2018 16:08:52 +0100 Subject: [PATCH 2/8] IDEMPIERE-2389 Print format and Report type selection on process dialog / fix problem reported by Vassili Kouleshov at https://groups.google.com/d/msg/idempiere/qFJ0FeDiZJo/7V77mXEkAgAJ --- .../WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java index b9ecff22c6..95fd83e4ea 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java @@ -1278,6 +1278,7 @@ public class ZkReportViewer extends Window implements EventListener, ITab // Get Language from previous - thanks Gunther Hoppe if (m_reportEngine.getPrintFormat() != null) { + setLanguage(); pf.setLanguage(m_reportEngine.getPrintFormat().getLanguage()); // needs to be re-set - otherwise viewer will be blank pf.setTranslationLanguage(m_reportEngine.getPrintFormat().getLanguage()); } From a9eb122e3a11098dd7039763f51dffbe0e80a526 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sun, 23 Dec 2018 19:01:27 +0100 Subject: [PATCH 3/8] IDEMPIERE-3653 Hazelcast improvements / synchronize with latest default xml - fix warning about wrong schema in hazelcast.xml --- .../hazelcast-template.xml | 13 ++++++------ .../hazelcast.xml | 20 ++++++++++++------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/org.adempiere.server-feature/hazelcast-template.xml b/org.adempiere.server-feature/hazelcast-template.xml index 90e8c53bc0..9f1dace4bd 100644 --- a/org.adempiere.server-feature/hazelcast-template.xml +++ b/org.adempiere.server-feature/hazelcast-template.xml @@ -1,6 +1,6 @@ - + @ADEMPIERE_DB_USER@.@ADEMPIERE_DB_NAME@/@ADEMPIERE_DB_SERVER@ @ADEMPIERE_DB_PASSWORD@ - http://localhost:8080/mancenter + http://localhost:8080/hazelcast-mancenter false diff --git a/org.idempiere.hazelcast.service.config/hazelcast.xml b/org.idempiere.hazelcast.service.config/hazelcast.xml index c101dfabb4..44d8e6576f 100644 --- a/org.idempiere.hazelcast.service.config/hazelcast.xml +++ b/org.idempiere.hazelcast.service.config/hazelcast.xml @@ -1,6 +1,6 @@ - + dev dev-pass - http://localhost:8080/mancenter + http://localhost:8080/hazelcast-mancenter false @@ -42,7 +43,7 @@ 0 - + 224.2.2.3 54327 @@ -211,6 +212,11 @@ --> INDEX-ONLY + + OBJECT + true + +