From 4ddd82c2e0e7b5d516e7ff42ebaaa72adea81e9b Mon Sep 17 00:00:00 2001 From: Juliana Corredor Date: Wed, 12 Jun 2013 16:42:48 -0500 Subject: [PATCH] IDEMPIERE-997 Error panel impossible to remove --- .../src/org/adempiere/webui/adwindow/DetailPane.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/DetailPane.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/DetailPane.java index 5b8bfa6a65..a09a61d695 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/DetailPane.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/DetailPane.java @@ -460,8 +460,7 @@ public class DetailPane extends Panel implements EventListener, IdSpace { Boolean error = (Boolean) messageContainer.getAttribute(STATUS_ERROR_ATTRIBUTE); String status = (String) messageContainer.getAttribute(STATUS_TEXT_ATTRIBUTE); - createPopupContent(status); - showPopup(error, messageContainer); + showPopup(error, status); } else if (event.getName().equals(ADTabpanel.ON_DYNAMIC_DISPLAY_EVENT)) { if (LayoutUtils.isReallyVisible(this)) updateProcessToolbar(); @@ -483,8 +482,8 @@ public class DetailPane extends Panel implements EventListener, IdSpace { msgPopupCnt.appendChild(t); } - private void showPopup(boolean error, Component messageContainer) { - LayoutUtils.openOverlappedWindow(messageContainer, msgPopup, "overlap_end"); + private void showPopup(boolean error, String msg) { + Clients.showNotification(buildNotificationText(msg), "error", findTabpanel(this), "at_pointer", 3500, true); } private void createPopup() {