myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Trivial Update of "Displaying_Errors/Infos/Warnings_in_JSF_Pages" by newacct
Date Fri, 05 Feb 2010 07:49:36 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The "Displaying_Errors/Infos/Warnings_in_JSF_Pages" page has been changed by newacct.
http://wiki.apache.org/myfaces/Displaying_Errors/Infos/Warnings_in_JSF_Pages?action=diff&rev1=7&rev2=8

--------------------------------------------------

          if (null != severityLevel) {
              getLogger().debug("Severity Level Trapped: level = '" + severityLevel.toString()
+ "'");
  
-             if (severityLevel.compareTo(FacesMessage.SEVERITY_ERROR) == 0) {
+             if (severityLevel.equals(FacesMessage.SEVERITY_ERROR)) {
                  messageHeader = Messages.getString("PAGE_MESSAGE_ERROR");
                  messageImage = "resources/warning.gif";
-             } else if (severityLevel.compareTo(FacesMessage.SEVERITY_INFO) == 0) {
+             } else if (severityLevel.equals(FacesMessage.SEVERITY_INFO)) {
                  messageHeader = null;
                  messageImage = "resources/information.gif";
-             } else if (severityLevel.compareTo(FacesMessage.SEVERITY_WARN) == 0) {
+             } else if (severityLevel.equals(FacesMessage.SEVERITY_WARN)) {
                  messageHeader = null;
                  messageImage = "resources/warning.gif";
-             } else if (severityLevel.compareTo(FacesMessage.SEVERITY_FATAL) == 0) {
+             } else if (severityLevel.equals(FacesMessage.SEVERITY_FATAL)) {
                  messageHeader = Messages.getString("PAGE_FATAL_ERROR");
                  messageImage = "resources/stop.gif";
              }

Mime
View raw message