myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wtl...@apache.org
Subject svn commit: r1749737 - in /myfaces/core/trunk: api/src/main/java/javax/faces/component/_ComponentUtils.java impl/src/main/java/org/apache/myfaces/view/facelets/compiler/_ComponentUtils.java
Date Wed, 22 Jun 2016 16:31:34 GMT
Author: wtlucy
Date: Wed Jun 22 16:31:33 2016
New Revision: 1749737

URL: http://svn.apache.org/viewvc?rev=1749737&view=rev
Log:
MYFACES-4051 FacesMessage.Severity always set to ERROR after ValidatorException

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/component/_ComponentUtils.java
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/_ComponentUtils.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/_ComponentUtils.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/_ComponentUtils.java?rev=1749737&r1=1749736&r2=1749737&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/_ComponentUtils.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/_ComponentUtils.java Wed Jun
22 16:31:33 2016
@@ -290,7 +290,6 @@ class _ComponentUtils
                     FacesMessage facesMessage = e.getFacesMessage();
                     if (facesMessage != null)
                     {
-                        facesMessage.setSeverity(FacesMessage.SEVERITY_ERROR);
                         context.addMessage(input.getClientId(context), facesMessage);
                     }
                     Collection<FacesMessage> facesMessages = e.getFacesMessages();
@@ -298,7 +297,6 @@ class _ComponentUtils
                     {
                         for (FacesMessage message : facesMessages)
                         {
-                            message.setSeverity(FacesMessage.SEVERITY_ERROR);
                             context.addMessage(input.getClientId(context), message);
                         }
                     }
@@ -332,7 +330,6 @@ class _ComponentUtils
                         FacesMessage facesMessage = ((ValidatorException)cause).getFacesMessage();
                         if (facesMessage != null)
                         {
-                            facesMessage.setSeverity(FacesMessage.SEVERITY_ERROR);
                             context.addMessage(input.getClientId(context), facesMessage);
                         }
                         Collection<FacesMessage> facesMessages = ((ValidatorException)cause).getFacesMessages();
@@ -340,7 +337,6 @@ class _ComponentUtils
                         {
                             for (FacesMessage message : facesMessages)
                             {
-                                message.setSeverity(FacesMessage.SEVERITY_ERROR);
                                 context.addMessage(input.getClientId(context), message);
                             }
                         }

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/_ComponentUtils.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/_ComponentUtils.java?rev=1749737&r1=1749736&r2=1749737&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/_ComponentUtils.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/_ComponentUtils.java
Wed Jun 22 16:31:33 2016
@@ -286,7 +286,6 @@ class _ComponentUtils
                     FacesMessage facesMessage = e.getFacesMessage();
                     if (facesMessage != null)
                     {
-                        facesMessage.setSeverity(FacesMessage.SEVERITY_ERROR);
                         context.addMessage(input.getClientId(context), facesMessage);
                     }
                     Collection<FacesMessage> facesMessages = e.getFacesMessages();
@@ -294,7 +293,6 @@ class _ComponentUtils
                     {
                         for (FacesMessage message : facesMessages)
                         {
-                            message.setSeverity(FacesMessage.SEVERITY_ERROR);
                             context.addMessage(input.getClientId(context), message);
                         }
                     }
@@ -328,7 +326,6 @@ class _ComponentUtils
                         FacesMessage facesMessage = ((ValidatorException)cause).getFacesMessage();
                         if (facesMessage != null)
                         {
-                            facesMessage.setSeverity(FacesMessage.SEVERITY_ERROR);
                             context.addMessage(input.getClientId(context), facesMessage);
                         }
                         Collection<FacesMessage> facesMessages = ((ValidatorException)cause).getFacesMessages();
@@ -336,7 +333,6 @@ class _ComponentUtils
                         {
                             for (FacesMessage message : facesMessages)
                             {
-                                message.setSeverity(FacesMessage.SEVERITY_ERROR);
                                 context.addMessage(input.getClientId(context), message);
                             }
                         }



Mime
View raw message