Author: nbelaevski
Date: 2007-10-30 19:16:49 -0400 (Tue, 30 Oct 2007)
New Revision: 3628
Modified:
trunk/samples/tooltip-sample/src/main/webapp/pages/demo.jsp
Log:
http://jira.jboss.com/jira/browse/RF-1269
Modified: trunk/samples/tooltip-sample/src/main/webapp/pages/demo.jsp
===================================================================
--- trunk/samples/tooltip-sample/src/main/webapp/pages/demo.jsp 2007-10-30 23:16:45 UTC
(rev 3627)
+++ trunk/samples/tooltip-sample/src/main/webapp/pages/demo.jsp 2007-10-30 23:16:49 UTC
(rev 3628)
@@ -36,7 +36,7 @@
</p>
</f:verbatim>
- <rich:toolTip followMouse="true" direction="top-right"
delay="500" styleClass="tooltip" style="width:250px">
+ <rich:toolTip followMouse="true" direction="top-right"
showDelay="500" styleClass="tooltip"
style="width:250px">
<f:verbatim>
<span>
This tool-tip content also <strong>pre-rendered</strong> to the page.
@@ -93,6 +93,47 @@
</rich:toolTip>
</a4j:outputPanel>
</h:form>
+ <h:form>
+ <f:verbatim>
+ <div id="justdiv"
style="width:350px;height:75px;cursor:arrow;border-width:2px;text-align:center;border:2px
solid red">
+ Simple HTML DIV
+ </div>
+ </f:verbatim>
+
+ <rich:toolTip for="justdiv">
+ <f:verbatim>
+ <span style="white-space:nowrap">
+ This tool-tip content was <strong>pre-rendered</strong> to the
page.<br/>
+ The look of this tool-tip is 100% defined by skin.
+ </span>
+ </f:verbatim>
+ </rich:toolTip>
+ </h:form>
+ <h:panelGroup>
+ <a4j:outputPanel id="forComponent" layout="block"
style="width:350px;height:75px;cursor:arrow;border-width:2px;text-align:center;border:2px
solid red">
+ <f:verbatim>
+ <p>
+ For pointed to JSF component
+ </p>
+ </f:verbatim>
+ </a4j:outputPanel>
+ <a4j:outputPanel layout="block"
style="width:350px;height:75px;cursor:arrow;border-width:2px;text-align:center;border:2px
solid red">
+ <rich:toolTip for="forComponent">
+ <f:verbatim>
+ <span style="white-space:nowrap">
+ This tool-tip content was <strong>pre-rendered</strong> to the
page.<br/>
+ The look of this tool-tip is 100% defined by skin.
+ </span>
+ </f:verbatim>
+ </rich:toolTip>
+
+ <f:verbatim>
+ <span style="white-space:nowrap">
+ No tooltip here!
+ </span>
+ </f:verbatim>
+ </a4j:outputPanel>
+ </h:panelGroup>
</h:panelGrid>
<h:form>
@@ -103,7 +144,7 @@
</p>
</f:verbatim>
- <rich:toolTip delay="2000" direction="top-right"
mode="ajax" styleClass="tooltip" layout="block">
+ <rich:toolTip showDelay="2000" direction="top-right"
mode="ajax" styleClass="tooltip" layout="block">
<f:facet name="defaultContent">
<f:verbatim>
<strong>Wait...</strong>