myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wtl...@apache.org
Subject svn commit: r1749735 - in /myfaces/core/branches/2.0.x: 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:23:38 GMT
Author: wtlucy
Date: Wed Jun 22 16:23:38 2016
New Revision: 1749735

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

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

Modified: myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/_ComponentUtils.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/_ComponentUtils.java?rev=1749735&r1=1749734&r2=1749735&view=diff
==============================================================================
--- myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/_ComponentUtils.java
(original)
+++ myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/_ComponentUtils.java
Wed Jun 22 16:23:38 2016
@@ -278,7 +278,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();
@@ -286,7 +285,6 @@ class _ComponentUtils
                     {
                         for (FacesMessage message : facesMessages)
                         {
-                            message.setSeverity(FacesMessage.SEVERITY_ERROR);
                             context.addMessage(input.getClientId(context), message);
                         }
                     }
@@ -320,7 +318,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();
@@ -328,7 +325,6 @@ class _ComponentUtils
                         {
                             for (FacesMessage message : facesMessages)
                             {
-                                message.setSeverity(FacesMessage.SEVERITY_ERROR);
                                 context.addMessage(input.getClientId(context), message);
                             }
                         }

Modified: myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/_ComponentUtils.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/_ComponentUtils.java?rev=1749735&r1=1749734&r2=1749735&view=diff
==============================================================================
--- myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/_ComponentUtils.java
(original)
+++ myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/_ComponentUtils.java
Wed Jun 22 16:23:38 2016
@@ -291,7 +291,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();
@@ -299,7 +298,6 @@ class _ComponentUtils
                     {
                         for (FacesMessage message : facesMessages)
                         {
-                            message.setSeverity(FacesMessage.SEVERITY_ERROR);
                             context.addMessage(input.getClientId(context), message);
                         }
                     }
@@ -333,7 +331,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();
@@ -341,7 +338,6 @@ class _ComponentUtils
                         {
                             for (FacesMessage message : facesMessages)
                             {
-                                message.setSeverity(FacesMessage.SEVERITY_ERROR);
                                 context.addMessage(input.getClientId(context), message);
                             }
                         }



Mime
View raw message