Author: pyaschenko
Date: 2008-03-31 09:21:35 -0400 (Mon, 31 Mar 2008)
New Revision: 7465
Modified:
trunk/samples/tooltip-sample/src/main/webapp/pages/index.jsp
trunk/ui/tooltip/src/main/java/org/richfaces/taglib/ToolTipTagHandlerBase.java
Log:
http://jira.jboss.com/jira/browse/RF-2879
Modified: trunk/samples/tooltip-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/tooltip-sample/src/main/webapp/pages/index.jsp 2008-03-31 13:18:11 UTC
(rev 7464)
+++ trunk/samples/tooltip-sample/src/main/webapp/pages/index.jsp 2008-03-31 13:21:35 UTC
(rev 7465)
@@ -42,6 +42,20 @@
<br/><br/>
<div style="position:relative;top:100px;left:200px;">
</f:verbatim>
+
+<h:panelGroup layout="block" id="asdasdasda"
style="width:50px; height:50px;background-color:red;">
+<rich:toolTip showEvent="onclick" direction="bottom-left"
styleClass="tooltip" layout="block">
+<f:facet name="defaultContent">
+<strong>Wait...</strong>
+</f:facet>
+<span style="white-space:nowrap">This tool-tip content was
<strong>rendered on server</strong><br/></span>
+<h:panelGrid columns="2">
+<h:outputText style="white-space:nowrap" value="tooltips
requested:" />
+<h:outputText value="Test Test Test" styleClass="tooltipData"
/>
+</h:panelGrid>
+</rich:toolTip>
+</h:panelGroup>
+
<h:commandButton value="Tooltip with followMouse mode"
id="btn">
<rich:toolTip id="tt" followMouse="true"
direction="top-right" mode="ajax"
value="#{bean.toolTipContent}" horizontalOffset="5"
verticalOffset="5" layout="block">
<f:facet name="defaultContent"><f:verbatim>DEFAULT
CONTENT</f:verbatim>
Modified: trunk/ui/tooltip/src/main/java/org/richfaces/taglib/ToolTipTagHandlerBase.java
===================================================================
---
trunk/ui/tooltip/src/main/java/org/richfaces/taglib/ToolTipTagHandlerBase.java 2008-03-31
13:18:11 UTC (rev 7464)
+++
trunk/ui/tooltip/src/main/java/org/richfaces/taglib/ToolTipTagHandlerBase.java 2008-03-31
13:21:35 UTC (rev 7465)
@@ -25,7 +25,7 @@
idAttribute != null ? idAttribute.getValue() : null +
"[" + attribute.getValue() + "]. event attribute is deprecated and
thus has been dropped!");
}
- return super.createMetaRuleset(type).alias("showEvent", "event");
+ return super.createMetaRuleset(type).alias("event", "showEvent");
}