modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/configuration/resource/RawConfigUIBean.java
| 6 +++++-
modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/raw.xhtml
| 1 +
2 files changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 285f1836f984953660f66ec7e42e3e6beab7fd9e
Author: John Sanda <john(a)localhost.localdomain>
Date: Tue Mar 2 12:53:25 2010 -0500
Prepending '**' to the file names in the menu for files that have validation
errors
A better visual indicator for validation errors would be to render the file names in
the menu
in a red font. I was unable to get the CSS working for that though, and due to time
constraints went with this solution.
diff --git
a/modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/configuration/resource/RawConfigUIBean.java
b/modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/configuration/resource/RawConfigUIBean.java
index 68a7887..2fbeac3 100644
---
a/modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/configuration/resource/RawConfigUIBean.java
+++
b/modules/enterprise/gui/portal-war/src/main/java/org/rhq/enterprise/gui/configuration/resource/RawConfigUIBean.java
@@ -101,9 +101,13 @@ public class RawConfigUIBean {
/**
* @return The name of the raw config file excluding the path. If the file has been
modified, an asterisk is
- * prepended to the name.
+ * prepended to the name. If the file has validation errors, two asterisks are
prepended to the name.
*/
public String getFileDisplayName() {
+ if (errorMessage != null) {
+ return "** " + getFileName();
+ }
+
if (isModified()) {
return "* " + getFileName();
}
diff --git
a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/raw.xhtml
b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/raw.xhtml
index af38dba..7d13acb 100644
---
a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/raw.xhtml
+++
b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/raw.xhtml
@@ -96,6 +96,7 @@
<div class="raw-outer-table-left-col-footer">
<br/>
<div class="raw-outer-table-left-col-footer-content">* -
Contains uncommitted changes.</div>
+ <div class="raw-outer-table-left-col-footer-content">** -
Contains validation errors.</div>
</div>
</c:if>
Show replies by date