[richfaces-svn-commits] JBoss Rich Faces SVN: r5326 - trunk/samples/tooltip-sample/src/main/webapp/pages.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Sat Jan 12 08:12:55 EST 2008


Author: sergeyhalipov
Date: 2008-01-12 08:12:55 -0500 (Sat, 12 Jan 2008)
New Revision: 5326

Modified:
   trunk/samples/tooltip-sample/src/main/webapp/pages/index.jsp
Log:
Merged tool tip sample.

Modified: trunk/samples/tooltip-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/tooltip-sample/src/main/webapp/pages/index.jsp	2008-01-12 13:01:03 UTC (rev 5325)
+++ trunk/samples/tooltip-sample/src/main/webapp/pages/index.jsp	2008-01-12 13:12:55 UTC (rev 5326)
@@ -8,6 +8,27 @@
 <html>
 	<head>
 		<title></title>
+		<style>
+        	.abs_div {
+        		position: absolute;
+        		top: 250px;
+        		left: 100px;
+        		width: 200px;
+        		height: 200px;
+        		overflow: auto;
+        		color: gray;
+        		border: 1px solid red;
+        	}
+        	
+        	.inner_div {
+        		display: block;
+        		width: 400px;
+        		height: 100px;
+        		top: 50px;
+        		left: 0px;
+        		border: 1px solid green;
+        	}
+    </style>
 	</head>
 	<body>
 		<f:view>
@@ -49,7 +70,20 @@
 				</h:commandButton--%>
 				
 				<%--a4j:log popup="false" level="ALL"></a4j:log--%>
-			
+				
+				<a4j:outputPanel layout="block" styleClass="abs_div" >
+					<a4j:outputPanel layout="block" styleClass="inner_div" >
+						<rich:toolTip id="abs_t" followMouse="true" value="" 
+								layout="block" horizontalOffset="0" verticalOffset="0"
+								direction="top-right" >
+							<f:facet name="defaultContent">
+								<f:verbatim>DEFAULT CONTENT</f:verbatim>
+							</f:facet>
+							<h:outputText value="Tooltip on scrolled absolutly positioned element." />
+						</rich:toolTip>
+					</a4j:outputPanel>
+				</a4j:outputPanel>
+				
 				<h:outputText id="text1" value="Text with tooltip">
 					<rich:toolTip id="controlledTooltip" followMouse="false" direction="top-right" value="#{bean.toolTipContent}" horizontalOffset="5" verticalOffset="5" layout="inline">
 					</rich:toolTip>				
@@ -81,8 +115,7 @@
 					</rich:toolTip>
 				</h:inputText>
 			</h:form>
-			
+			<h:panelGroup style="width: 1000px; height: 10px;" layout="block"></h:panelGroup>
 		</f:view>
 	</body>	
 </html>  
-




More information about the richfaces-svn-commits mailing list