Author: Alex.Kolonitsky
Date: 2009-06-24 05:00:25 -0400 (Wed, 24 Jun 2009)
New Revision: 14712
Modified:
branches/community/3.3.X/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java
Log:
The level attribute on <richfaces:messages /> does not work properly
https://jira.jboss.org/jira/browse/RF-7396
Modified:
branches/community/3.3.X/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java
===================================================================
---
branches/community/3.3.X/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java 2009-06-23
15:57:21 UTC (rev 14711)
+++
branches/community/3.3.X/ui/message/src/main/java/org/richfaces/component/UIRichMessages.java 2009-06-24
09:00:25 UTC (rev 14712)
@@ -201,7 +201,7 @@
for (Object key : FacesMessage.VALUES_MAP.keySet()) {
Severity sev = (Severity) FacesMessage.VALUES_MAP.get(key);
if (0 == sev.compareTo(severity)) {
- return severenities.contains(key);
+ return severenities.contains(((String)key).toUpperCase());
}
}
return false;