modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/CoreGUI.java
| 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
New commits:
commit 20155e8d267c81294f4c68ab35d70c19313d9766
Author: Jay Shaughnessy <jshaughn(a)redhat.com>
Date: Fri Feb 25 11:25:31 2011 -0500
add back refresh protection for message bar clearing
diff --git
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/CoreGUI.java
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/CoreGUI.java
index 4a55504..fbcd0de 100644
---
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/CoreGUI.java
+++
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/CoreGUI.java
@@ -357,12 +357,14 @@ public class CoreGUI implements EntryPoint,
ValueChangeHandler<String> {
public void renderView(final ViewPath viewPath) {
Window.setTitle(getViewPathTitle(viewPath));
- // when navigating, clear any message, the user is probably no longer
interested
- coreGUI.footer.getMessageBar().clearMessage(true);
-
// keep our CoreGUI session alive by refreshing the session timer each time
the user performs navigation
UserSessionManager.refresh();
+ // clear any message when navigating to a new view (not refreshing), the user
is probably no longer interested
+ if (!viewPath.isRefresh()) {
+ coreGUI.footer.getMessageBar().clearMessage(true);
+ }
+
if (viewPath.isEnd()) {
// default view
History.newItem(DEFAULT_VIEW_PATH);
Show replies by date