Author: dbiatenia
Date: 2007-07-23 10:20:09 -0400 (Mon, 23 Jul 2007)
New Revision: 1785
Modified:
trunk/samples/tooltip-sample/src/main/webapp/pages/index.jsp
Log:
Modified: trunk/samples/tooltip-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/tooltip-sample/src/main/webapp/pages/index.jsp 2007-07-23 14:19:27 UTC
(rev 1784)
+++ trunk/samples/tooltip-sample/src/main/webapp/pages/index.jsp 2007-07-23 14:20:09 UTC
(rev 1785)
@@ -1,7 +1,9 @@
<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/tooltip"
prefix="tt"%>
+<%--@ taglib
uri="https://ajax4jsf.dev.java.net/ajax"
prefix="a4j"--%>
<%@ taglib
uri="http://richfaces.org/ajax" prefix="a4j"%>
+<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/tooltip"
prefix="rich"%>
+
<html>
<head>
<title></title>
@@ -13,31 +15,35 @@
<h:commandLink action="#{skinBean.change}" value="set skin"
/>
<f:verbatim>
<br/><br/>
+ <div style="position:relative;top:100px;left:100px;">
</f:verbatim>
- <h:panelGrid columns="1">
- <h:commandButton value="Tooltip with followMouse mode"
id="btn3">
- <tt:toolTip followMouse="false" direction="top-left"
mode="ajax" value="#{bean.toolTipContent}"
horizontalOffset="20" verticalOffset="20">
- <f:facet name="defaultContent">
- <h:outputText value="Some text will be here soon" />
+ <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>
</f:facet>
- <h:outputText value="Final content" />
- </tt:toolTip>
- </h:commandButton>
- <h:inputText value="Ajax mode Tooltip with default content"
id="inp1" size="50">
- <tt:toolTip id="tt" followMouse="false"
direction="top-right" mode="ajax"
value="#{bean.toolTipContent}" horizontalOffset="20"
verticalOffset="20">
- <f:facet name="defaultContent">
- <h:outputText value="Some text will be here soon" />
- </f:facet>
<h:outputText id="ot"
value="#{bean.toolTipContent}"></h:outputText>
- <h:commandLink value="Click here to close
window..."></h:commandLink>
- </tt:toolTip>
- </h:inputText>
-
- <h:commandButton value="Tooltip with followMouse mode"
id="btn">
- <tt:toolTip value="Tooltip text"
followMouse="true"></tt:toolTip>
+ <h:commandLink value="You can click
here..."></h:commandLink>
+ </rich:toolTip>
</h:commandButton>
+ <f:verbatim>
+ </div>
+ </f:verbatim>
+ <h:commandLink value="Simple Link" id="link">
+ <rich:toolTip id="toolTipForLink" followMouse="false"
direction="top-right" mode="ajax"
value="#{bean.toolTipContent}" horizontalOffset="5"
verticalOffset="5" layout="block">
+ <f:facet name="defaultContent"><f:verbatim>DEFAULT LINK
CONTENT</f:verbatim>
+ </f:facet>
+ <h:outputText id="outText"
value="#{bean.toolTipContent}"></h:outputText>
+ </rich:toolTip>
- </h:panelGrid>
+ </h:commandLink>
+ <h:outputText id="text" value="Text with tooltip">
+ <rich:toolTip id="toolTipForText" followMouse="false"
direction="top-right" mode="ajax"
value="#{bean.toolTipContent}" horizontalOffset="5"
verticalOffset="5" layout="inline">
+ </rich:toolTip>
+ </h:outputText>
+ <%-- h:commandButton value="Tooltip with followMouse mode"
id="btn">
+ <tt:toolTip value="Tooltip text" followMouse="false"
onclick="alert('onlcick');"
direction="bottom-left"></tt:toolTip>
+ </h:commandButton--%>
+
<%--a4j:log popup="false" level="ALL"></a4j:log--%>
</h:form>