myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1067511 - /myfaces/commons/branches/jsf_20/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/ParametrizableFacesMessage.java
Date Sat, 05 Feb 2011 20:21:18 GMT
Author: lu4242
Date: Sat Feb  5 20:21:18 2011
New Revision: 1067511

URL: http://svn.apache.org/viewvc?rev=1067511&view=rev
Log:
MFCOMMONS-27 CLONE - Its not possible to change the summary/ detail message of a ParametrizableFacesMessage

Modified:
    myfaces/commons/branches/jsf_20/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/ParametrizableFacesMessage.java

Modified: myfaces/commons/branches/jsf_20/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/ParametrizableFacesMessage.java
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/ParametrizableFacesMessage.java?rev=1067511&r1=1067510&r2=1067511&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/ParametrizableFacesMessage.java
(original)
+++ myfaces/commons/branches/jsf_20/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/ParametrizableFacesMessage.java
Sat Feb  5 20:21:18 2011
@@ -64,6 +64,7 @@ public class ParametrizableFacesMessage 
         _args = args;
     }
 
+    @Override
     public String getDetail()
     {
         if (_evaluatedArgs == null && _args != null)
@@ -78,6 +79,19 @@ public class ParametrizableFacesMessage 
         return _evaluatedDetail;
     }
 
+    @Override
+    public void setDetail(String detail)
+    {
+        super.setDetail(detail);
+        _evaluatedDetail = null;
+    }
+    
+    public String getUnformattedDetail()
+    {
+        return super.getDetail();
+    }
+
+    @Override
     public String getSummary()
     {
         if (_evaluatedArgs == null && _args != null)
@@ -92,6 +106,18 @@ public class ParametrizableFacesMessage 
         return _evaluatedSummary;
     }
 
+    @Override
+    public void setSummary(String summary)
+    {
+        super.setSummary(summary);
+        _evaluatedSummary = null;
+    }
+    
+    public String getUnformattedSummary()
+    {
+        return super.getSummary();
+    }
+
     private void evaluateArgs()
     {
         _evaluatedArgs = new Object[_args.length];



Mime
View raw message