Author: abelevich
Date: 2007-07-24 09:14:24 -0400 (Tue, 24 Jul 2007)
New Revision: 1823
Modified:
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageHtmlBaseRenderer.java
Log:
add support for rendering title attribute
Modified:
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageHtmlBaseRenderer.java
===================================================================
---
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageHtmlBaseRenderer.java 2007-07-24
13:13:50 UTC (rev 1822)
+++
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageHtmlBaseRenderer.java 2007-07-24
13:14:24 UTC (rev 1823)
@@ -260,6 +260,8 @@
Severity severity = null;
+ String title = null;
+
boolean isTooltip = getUtils().isBooleanAttribute(uiMsg, "tooltip");
boolean showSummary = uiMsg.isShowSummary();
@@ -268,6 +270,7 @@
boolean isPassLabel = false;
+
if(facesMsg != null){
severity = facesMsg.getSeverity();
@@ -319,7 +322,12 @@
if(facesMsg != null){
if(isTooltip){
- getUtils().writeAttribute(writer, HTML.title_ATTRIBUTE, summary);
+ title = (String) uiMsg.getAttributes().get("title");
+ if(title != null){
+ getUtils().writeAttribute(writer, HTML.title_ATTRIBUTE, title);
+ }else{
+ getUtils().writeAttribute(writer, HTML.title_ATTRIBUTE, summary);
+ }
}
if(showDetail){
Show replies by date