[richfaces-svn-commits] JBoss Rich Faces SVN: r14433 - branches/community/3.3.X/samples/tooltip-sample/src/main/webapp/pages.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Jun 2 09:40:34 EDT 2009


Author: Alex.Kolonitsky
Date: 2009-06-02 09:40:34 -0400 (Tue, 02 Jun 2009)
New Revision: 14433

Added:
   branches/community/3.3.X/samples/tooltip-sample/src/main/webapp/pages/RF-5597.jsp
Log:
toolTip javascript hide() doesn't work on safari
https://jira.jboss.org/jira/browse/RF-5597

Added: branches/community/3.3.X/samples/tooltip-sample/src/main/webapp/pages/RF-5597.jsp
===================================================================
--- branches/community/3.3.X/samples/tooltip-sample/src/main/webapp/pages/RF-5597.jsp	                        (rev 0)
+++ branches/community/3.3.X/samples/tooltip-sample/src/main/webapp/pages/RF-5597.jsp	2009-06-02 13:40:34 UTC (rev 14433)
@@ -0,0 +1,36 @@
+<%@ 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="rich" %>
+
+<html>
+    <head>
+        <script type="text/javascript">/* <![CDATA[ */
+            function showPopup( e, popupElemId ) {
+                popup = document.getElementById( popupElemId );
+                popup.component.show(e);
+                return false;
+            }
+
+            function hidePopup( e, popupElemId ) {
+                popup = document.getElementById( popupElemId );
+                popup.component.hide(e);
+                return false;
+            }
+        /* ]]> */</script>
+    </head>
+
+    <body>
+    <f:view>
+
+        <h:outputLink id="link" value="#" onclick="return showPopup(event, 'popup' );">
+            Click to Open
+        </h:outputLink>
+        <rich:toolTip id="popup" for="link" showEvent="none" hideEvent="none">
+            <h:outputLink value="#" onclick="return hidePopup( event, 'popup' );">
+                Click to Close
+            </h:outputLink>
+        </rich:toolTip>
+
+    </f:view>
+    </body>
+</html> 
\ No newline at end of file




More information about the richfaces-svn-commits mailing list