myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ckor...@apache.org
Subject svn commit: r924851 - /myfaces/trinidad/branches/trinidad-1.2.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/MessageRenderer.java
Date Thu, 18 Mar 2010 15:11:33 GMT
Author: ckormos
Date: Thu Mar 18 15:11:33 2010
New Revision: 924851

URL: http://svn.apache.org/viewvc?rev=924851&view=rev
Log:
patch applied for [TRINIDAD-1758] - warnings with the new skin (thanks to Cosmin Martinconi
for providing the patch)

Modified:
    myfaces/trinidad/branches/trinidad-1.2.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/MessageRenderer.java

Modified: myfaces/trinidad/branches/trinidad-1.2.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/MessageRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/trinidad-1.2.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/MessageRenderer.java?rev=924851&r1=924850&r2=924851&view=diff
==============================================================================
--- myfaces/trinidad/branches/trinidad-1.2.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/MessageRenderer.java
(original)
+++ myfaces/trinidad/branches/trinidad-1.2.x/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/MessageRenderer.java
Thu Mar 18 15:11:33 2010
@@ -173,13 +173,13 @@ public class MessageRenderer extends Val
             forId + "::msg", null);
 
       renderAllAttributes(context, arc, bean, false);
-      renderStyleAttributes(context, arc, bean, isError ?
-          SkinSelectors.INLINE_ERROR_TEXT_STYLE_CLASS :
-            SkinSelectors.INLINE_INFO_TEXT_STYLE_CLASS);
 
       if (hasMessage)
       {
-        // Output the server-side message
+        // Output the server-side message and it's style attributes
+        renderStyleAttributes(context, arc, bean, isError ?
+            SkinSelectors.INLINE_ERROR_TEXT_STYLE_CLASS :
+                SkinSelectors.INLINE_INFO_TEXT_STYLE_CLASS);          
         renderPossiblyFormattedText(context, message);
       }
       else



Mime
View raw message