Author: konstantin.mishin
Date: 2011-01-25 14:14:02 -0500 (Tue, 25 Jan 2011)
New Revision: 21225
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/TooltipRenderer.java
Log:
RF-10284
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/TooltipRenderer.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/TooltipRenderer.java 2011-01-25
19:12:58 UTC (rev 21224)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/renderkit/html/TooltipRenderer.java 2011-01-25
19:14:02 UTC (rev 21225)
@@ -131,7 +131,12 @@
writer.startElement(getMarkupElement(tooltip), tooltip);
writer.writeAttribute(ID_ATTRIBUTE, tooltip.getClientId(context) +
":loading", null);
writer.writeAttribute(CLASS_ATTRIBUTE, "rf-tt-loading", null);
- writer.writeText("Loading...", null);
+ UIComponent loading = tooltip.getFacet("loading");
+ if (loading != null && loading.isRendered()) {
+ loading.encodeAll(context);
+ } else {
+ writer.writeText("Loading...", null);
+ }
writer.endElement(getMarkupElement(tooltip));
}
Show replies by date