myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r582241 - /myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/msie/tag/MessageRenderer.java
Date Fri, 05 Oct 2007 13:00:03 GMT
Author: bommel
Date: Fri Oct  5 06:00:02 2007
New Revision: 582241

URL: http://svn.apache.org/viewvc?rev=582241&view=rev
Log:
(TOBAGO-510) tc:message tag doesn't work with IE

Modified:
    myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/msie/tag/MessageRenderer.java

Modified: myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/msie/tag/MessageRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/msie/tag/MessageRenderer.java?rev=582241&r1=582240&r2=582241&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/msie/tag/MessageRenderer.java
(original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/msie/tag/MessageRenderer.java
Fri Oct  5 06:00:02 2007
@@ -51,7 +51,7 @@
     }
     String clientId = null;
     if (component instanceof UIMessage) {
-      clientId = ((UIMessage) component).getFor();
+      clientId = ComponentUtil.findClientIdFor(component, facesContext);
     }
     int count = 0;
     for (Iterator i = facesContext.getMessages(clientId); i.hasNext();) {
@@ -62,7 +62,7 @@
     }
 
     if (count != 0) {
-      return count * 20; // FIXME: depends on theme
+      return count * getConfiguredValue(facesContext, component, "messageHeight");
     } else {
       return 1;
     }
@@ -113,7 +113,6 @@
         if (writeEmptyText) {
           writer.writeText("");
         }
-        writer.writeText(message.getSummary());
         writer.endElement(HtmlConstants.LABEL);
 
         writer.startElement(HtmlConstants.BR, null);



Mime
View raw message