Author: abelevich
Date: 2007-07-31 11:31:06 -0400 (Tue, 31 Jul 2007)
New Revision: 1955
Modified:
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java
Log:
Modified:
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java
===================================================================
---
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java 2007-07-31
15:01:19 UTC (rev 1954)
+++
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/HtmlRichMessagesRenderer.java 2007-07-31
15:31:06 UTC (rev 1955)
@@ -111,13 +111,16 @@
if((layout != null) && (layout.equals("table"))){
writer.startElement("table", uiMessages);
+
+ getUtils().writeAttribute(writer,HTML.id_ATTRIBUTE ,uiMessages.getClientId(context));
getUtils().writeAttribute(writer, HTML.cellpadding_ATTRIBUTE, "0");
getUtils().writeAttribute(writer, HTML.cellspacing_ATTRIBUTE, "0");
-
+
renderComponentOuterStyles(uiMessages, context, writer);
writer.startElement("tbody", uiMessages);
+
isWroteTable = true;
}else if((layout != null) && (layout.equals("iterator"))){
@@ -129,21 +132,22 @@
}
writer.startElement(HTML.SPAN_ELEM, uiMessages);
+ getUtils().writeAttribute(writer,HTML.id_ATTRIBUTE ,uiMessages.getClientId(context));
renderComponentOuterStyles(uiMessages, context, writer);
-
+
isIteratorLayout = true;
}else if((layout != null) && (layout.equals("list"))){
writer.startElement("dl", uiMessages);
+ getUtils().writeAttribute(writer,HTML.id_ATTRIBUTE ,uiMessages.getClientId(context));
+
renderComponentOuterStyles(uiMessages, context, writer);
-
+
}
-
- getUtils().writeAttribute(writer,HTML.id_ATTRIBUTE ,uiMessages.getClientId(context));
-
+
if(log.isInfoEnabled()){
log.info("start render messages");
}