[richfaces-svn-commits] JBoss Rich Faces SVN: r2069 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: commandButton/source and 10 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Mon Aug 6 06:39:16 EDT 2007


Author: ilya_shaikovsky
Date: 2007-08-06 06:39:16 -0400 (Mon, 06 Aug 2007)
New Revision: 2069

Modified:
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/usage.xhtml
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/usage.xhtml
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandLink/source/usage.xhtml
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/source/usage.xhtml
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/jsFunction/source/usage.xhtml
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/source/usage.xhtml
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/poll/source/usage.xhtml
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/region/source/usage.xhtml
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/script/source/usage.xhtml
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/status/source/usage.xhtml
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.xhtml
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/source/usage.xhtml
Log:


Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/usage.xhtml	2007-08-06 07:50:50 UTC (rev 2068)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/usage.xhtml	2007-08-06 10:39:16 UTC (rev 2069)
@@ -1 +1,23 @@
-x
\ No newline at end of file
+<div class="sample-container" >
+		<rich:separator lineType="solid" height="1" />
+		<table  width="400">
+			<tbody>
+			<tr>
+				<td onmouseover="updateName('Alex')"  onmouseout="updateName('')" > Alex</td>
+				<td onmouseover="updateName('Jonh')"  onmouseout="updateName('')" > Jonh</td>
+				<td onmouseover="updateName('Roger')"  onmouseout="updateName('')" > Roger</td>
+			</tr>
+			<tr>
+				<td colspan="3"><h:outputText id="showname" value="Name: #{userBean.name}" /></td>
+			</tr>
+			</tbody>
+		</table>
+
+		<a4j:form>
+			<a4j:jsFunction name="updateName" reRender="showname">
+				<a4j:actionparam name="param1" assignTo="#{userBean.name}"	/>					
+			</a4j:jsFunction>
+		</a4j:form>
+
+		<rich:separator height="1" style="padding-top:10px" />
+</div>

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/usage.xhtml	2007-08-06 07:50:50 UTC (rev 2068)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/usage.xhtml	2007-08-06 10:39:16 UTC (rev 2069)
@@ -1 +1,12 @@
-x
\ No newline at end of file
+<a4j:form>
+	<h:panelGrid columns="3">
+		<h:outputText value="Name:" />
+		<h:inputText value="#{userBean.name}" />
+		<a4j:commandButton value="Say Hello" reRender="out" />
+	</h:panelGrid>
+</a4j:form>
+<h:panelGroup id="out">
+	<h:outputText value="Hello " rendered="#{not empty userBean.name}" />
+	<h:outputText value="#{userBean.name}" />
+	<h:outputText value="!" rendered="#{not empty userBean.name}" />
+</h:panelGroup>
\ No newline at end of file

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandLink/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandLink/source/usage.xhtml	2007-08-06 07:50:50 UTC (rev 2068)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandLink/source/usage.xhtml	2007-08-06 10:39:16 UTC (rev 2069)
@@ -1 +1,14 @@
-x
\ No newline at end of file
+<a4j:form>
+	<h:panelGrid columns="3">
+		<h:outputText value="Name:" />
+		<h:inputText value="#{userBean.name}" />
+		<a4j:commandLink reRender="out">
+			<h:outputText value="Say Hello" /> 
+		</a4j:commandLink>
+	</h:panelGrid>
+</a4j:form>
+<h:panelGroup id="out">
+	<h:outputText value="Hello " rendered="#{not empty userBean.name}" />
+	<h:outputText value="#{userBean.name}" />
+	<h:outputText value="!" rendered="#{not empty userBean.name}" />
+</h:panelGroup>

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/source/usage.xhtml	2007-08-06 07:50:50 UTC (rev 2068)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/source/usage.xhtml	2007-08-06 10:39:16 UTC (rev 2069)
@@ -1 +1,6 @@
-x
\ No newline at end of file
+<a4j:form ajaxSubmit="true" reRender="name">
+	<h:panelGrid>
+		<h:commandButton value="Set Local Name to John (Ajax)" action="#{userBean.nameItJohn}" />
+		<h:outputText id="name" value="Name:#{userBean.name}" />
+	</h:panelGrid>
+</a4j:form>

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/jsFunction/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/jsFunction/source/usage.xhtml	2007-08-06 07:50:50 UTC (rev 2068)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/jsFunction/source/usage.xhtml	2007-08-06 10:39:16 UTC (rev 2069)
@@ -1 +1,18 @@
-x
\ No newline at end of file
+<table  width="400">
+	<tbody>
+	<tr>
+		<td onmouseover="updateName('Alex')"  onmouseout="updateName('')" > Alex</td>
+		<td onmouseover="updateName('Jonh')"  onmouseout="updateName('')" > Jonh</td>
+		<td onmouseover="updateName('Roger')"  onmouseout="updateName('')" > Roger</td>
+	</tr>
+	<tr>
+		<td colspan="3"><h:outputText id="showname" value="Name: #{userBean.name}" /></td>
+	</tr>
+	</tbody>
+</table>
+
+<a4j:form>
+	<a4j:jsFunction name="updateName" reRender="showname">
+		<a4j:actionparam name="param1" assignTo="#{userBean.name}"	/>					
+	</a4j:jsFunction>
+</a4j:form>

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/source/usage.xhtml	2007-08-06 07:50:50 UTC (rev 2068)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive/source/usage.xhtml	2007-08-06 10:39:16 UTC (rev 2069)
@@ -1 +1,36 @@
-x
\ No newline at end of file
+<h:panelGroup>
+	<a4j:keepAlive beanName="rsBean2" />
+	<h:form>
+		<h:inputText size="4" label="First Addent" value="#{rsBean2.addent1}">
+			<a4j:support event="onkeyup" reRender="btn2" />
+		</h:inputText>
+		<h:outputText value="+"/>
+		<h:inputText   size="4" label="Second Addent"  value="#{rsBean2.addent2}">
+				<a4j:support event="onkeyup" reRender="btn2" />						
+		</h:inputText>
+		<a4j:commandButton style="margin:0 5px" id="btn2" action="#{rsBean2.doSum}" 
+			 value="=" reRender="sum2"
+			 disabled="#{rsBean2.addent1 == null or rsBean2.addent2==null}"/>
+		<h:outputText id="sum2" value="#{rsBean2.sum}" />
+	</h:form>
+	<a4j:outputPanel ajaxRendered="true">
+		<h:messages />
+	</a4j:outputPanel>
+</h:panelGroup>
+
+...
+
+package org.richfaces.demo.ajaxSamples;
+
+public class rsBean {
+	private Integer addent1;
+	private Integer addent2;
+	private Integer sum;
+	
+	public String doSum() {
+		sum = new Integer((addent1 != null ? addent1.intValue() : 0) + (addent2 != null ? addent2.intValue() : 0));
+		return null;
+	}
+	
+	//getters and setters skipped
+}
\ No newline at end of file

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/poll/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/poll/source/usage.xhtml	2007-08-06 07:50:50 UTC (rev 2068)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/poll/source/usage.xhtml	2007-08-06 10:39:16 UTC (rev 2069)
@@ -1 +1,16 @@
-x
\ No newline at end of file
+<a4j:region>
+	<h:form>
+		<a4j:poll id="poll" interval="500" enabled="#{userBean.pollEnabled}" reRender="serverDate"/>
+	</h:form>
+</a4j:region>
+<h:form>
+	<h:panelGrid columns="2" width="80%">
+		<a4j:commandButton style="width:120px" id="control"
+						   value="#{userBean.pollEnabled?'Stop':'Start'} Polling"
+						   reRender="poll, control">
+			<a4j:actionparam name="polling" value="#{!userBean.pollEnabled}"
+							 assignTo="#{userBean.pollEnabled}"/>
+		</a4j:commandButton>
+		<h:outputText id="serverDate" style="font-size:16px" value="Server Date: #{userBean.date}"/>
+	</h:panelGrid>
+</h:form>

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/region/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/region/source/usage.xhtml	2007-08-06 07:50:50 UTC (rev 2068)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/region/source/usage.xhtml	2007-08-06 10:39:16 UTC (rev 2069)
@@ -1 +1,88 @@
-x
\ No newline at end of file
+<div class="sample-container" >
+	<rich:separator height="1" />
+	<a4j:outputPanel ajaxRendered="true">
+		<h:messages style="color:red" />
+	</a4j:outputPanel>
+	<h:panelGrid columns="2" width="100%">
+
+		<h:form id="form1">
+				<h:panelGrid columns="2">
+					<h:outputText value="Name" />
+					<h:inputText value="#{userBean.name}">
+						<a4j:support event="onkeyup" reRender="outname" />
+					</h:inputText>
+					<h:outputText value="Job:" />
+					<h:inputText  required="true" id="job2" value="#{userBean.job}" />
+				</h:panelGrid>
+		</h:form>
+
+		<h:form id="form2">
+			<h:panelGrid columns="2">
+				<h:outputText value="Name" />
+				<a4j:region>
+					<h:inputText value="#{userBean.name}">
+						<a4j:support event="onkeyup" reRender="outname" />
+					</h:inputText>
+				</a4j:region>
+				<h:outputText value="Job" />
+				<h:inputText   required="true"  id="job1"  value="#{userBean.job}" />
+			</h:panelGrid>
+		</h:form>
+
+	</h:panelGrid>
+	<h:outputText id="outname" style="font-weight:bold" value="Typed Name: #{userBean.name}" />
+	<rich:separator style="padding-top:10px" height="1" />
+	
+</div>
+
+...
+
+<div class="sample-container" >
+	<rich:separator height="1" />
+
+	<h:panelGrid columns="2" width="100%">
+
+		<a4j:region selfRendered="true">
+			<h:panelGroup>
+				<h:form>
+					<h:panelGrid columns="2">
+						<h:outputText value="Name" />
+						<h:inputText value="#{userBean.name}">
+							<a4j:support event="onkeyup" reRender="out3,outname2" />
+						</h:inputText>
+					</h:panelGrid>
+				</h:form>
+				<h:panelGroup id="out3">
+					This text will disappear during the partual update of this panel.
+					The text appears back only after the whole page refresh or a partial
+					update from the region with selfRendered="false" (default value).
+				</h:panelGroup>
+			</h:panelGroup>
+		</a4j:region>
+
+		<a4j:region selfRendered="true">
+			<h:panelGroup>
+				<h:form>
+					<h:panelGrid columns="2">
+						<h:outputText value="Name" />
+						<h:inputText value="#{userBean.name}">
+							<a4j:support event="onkeyup" reRender="out4,outname2" />
+						</h:inputText>
+					</h:panelGrid>
+				</h:form>
+				<h:panelGroup id="out4">
+					<h:outputText value="The text of the similar panel will 
+						not disappear because it is printed with h:outputText" />
+				</h:panelGroup>
+			</h:panelGroup>
+		</a4j:region>
+
+	</h:panelGrid>
+	<h:outputText 	id="outname2" style="font-weight:bold"
+					value="Typed Name: #{userBean.name}" />
+	
+	<rich:separator style="padding-top:10px" height="1" />
+
+</div>
+			
+			
\ No newline at end of file

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/script/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/script/source/usage.xhtml	2007-08-06 07:50:50 UTC (rev 2068)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/script/source/usage.xhtml	2007-08-06 10:39:16 UTC (rev 2069)
@@ -1 +1,49 @@
-x
\ No newline at end of file
+<a4j:loadScript src="resource://org/richfaces/renderkit/html/scripts/scriptaculous-js-1.6.5/src/scriptaculous.js"/>
+<a4j:loadScript src="resource:///org/richfaces/renderkit/html/scripts/scriptaculous-js-1.6.5/src/effects.js"/>
+
+<div id="itme" class="sample-container">
+	<h:commandButton  onclick="new Effect.BlindUp($('mypanel_body'), {duration:.3});return false" value="Hide"></h:commandButton>
+	<h:commandButton  onclick="new Effect.Appear($('mypanel_body'));return false" value="Show"></h:commandButton>
+
+	<rich:separator height="1" style="padding:10px 0" />
+
+	<div id="mdiv">
+	<rich:panel  id="mypanel">
+			<f:facet name="header">
+				<h:outputText value="Applying Skin on non-RichFaces Components"/>
+			</f:facet>
+
+
+
+
+			<h:panelGrid styleClass="rsPanel" width="250" columns="2">
+				<h:outputText styleClass="rsLabel" value="Name:" />
+				<h:inputText  styleClass="rsInput"  value="#{userBean.name}" />
+				
+				<h:outputText styleClass="rsLabel" value="Job:" />
+				<h:inputText  styleClass="rsInput"  value="#{userBean.job}" />
+				
+				<h:panelGroup />
+				<h:commandButton styleClass="rsButton"  value="Submit">
+					<a4j:support  disableDefault="true" event="onclick" reRender="out" />
+				</h:commandButton>
+				
+				<f:facet name="footer">
+				</f:facet>
+						
+			</h:panelGrid>
+			<h:panelGrid id="out" columns="1">
+				
+			<h:outputText value=""/>
+			<h:outputText value="You have just entered:"/>
+			<h:outputText value="Name: #{userBean.name}" />
+			<h:outputText value="Job: #{userBean.job}" />
+			</h:panelGrid>
+			
+		</rich:panel>
+
+			<rich:spacer height="20" />
+	</div>
+	
+	
+</div>

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/status/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/status/source/usage.xhtml	2007-08-06 07:50:50 UTC (rev 2068)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/status/source/usage.xhtml	2007-08-06 10:39:16 UTC (rev 2069)
@@ -1 +1,52 @@
-x
\ No newline at end of file
+<a4j:region id="rb">
+	<h:panelGrid columns="2">
+
+		<h:form>
+			  <a4j:commandButton eventsQueue="foo2"  value="Ajax Request 2"/>
+		</h:form>
+
+		<a4j:status>
+			<f:facet name="start">
+				<h:graphicImage  value="/images/ajax/ajax_process.gif"/>
+			</f:facet>
+		</a4j:status>
+
+	</h:panelGrid>
+</a4j:region>
+
+...
+
+<a4j:region id="extr">
+	<h:form>
+		<h:outputText value="Status:" />
+		<a4j:status id="commonstatus" startText="In Progress...." stopText=""/>
+
+		<h:panelGrid columns="2">
+			<h:outputText value="Name"/>
+			<h:inputText id="name" value="#{userBean.name}">
+				<a4j:support event="onkeyup" reRender="out" />
+			</h:inputText>
+
+			<h:outputText value="Job"/>
+			<a4j:region  id="intr">
+				<h:inputText id="job" value="#{userBean.job}">
+					<a4j:support event="onkeyup"  reRender="out" status="commonstatus"/>
+				</h:inputText>
+			</a4j:region>
+
+			<h:panelGroup />
+
+
+
+		</h:panelGrid>
+		<a4j:region>
+			<h:outputText id="out" value="Name: #{userBean.name}, Job: #{userBean.job}" />
+			<br />
+			<a4j:commandButton ajaxSingle="true" value="Clean Up Form" reRender="name, job, out"  status="commonstatus">
+				<a4j:actionparam name="n" value=""  assignTo="#{userBean.name}" />
+				<a4j:actionparam name="j" value=""  assignTo="#{userBean.job}" />
+			</a4j:commandButton>
+		</a4j:region>
+
+	</h:form>
+</a4j:region>

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.xhtml	2007-08-06 07:50:50 UTC (rev 2068)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.xhtml	2007-08-06 10:39:16 UTC (rev 2069)
@@ -1 +1,8 @@
-x
\ No newline at end of file
+<h:form>
+	<h:panelGrid columns="2">
+		<h:inputText value="#{userBean.name}">
+			<a4j:support event="onkeyup" reRender="outtext" />
+		</h:inputText>
+		<h:outputText id="outtext" value="#{userBean.name}" />
+	</h:panelGrid>
+</h:form>

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/source/usage.xhtml	2007-08-06 07:50:50 UTC (rev 2068)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/source/usage.xhtml	2007-08-06 10:39:16 UTC (rev 2069)
@@ -1,122 +1,77 @@
-<div class="sample-container" >
+<style>
+	.tooltip {
+		background-color:#{a4jSkin.generalBackgroundColor};
+		border-width:3px;
+		padding:10px;
+	}
+	.tooltip-text {
+		width:350px;
+		height:75px;
+		cursor:arrow;
+		border-width:2px;
+		text-align:center;
+	}
+	.tooltipData {
+		font-weight: bold;
+	}
+</style>
 
-	<rich:toolBar height="26" itemSeparator="grid">
-	  <rich:toolBarGroup>
-		  <h:graphicImage value="/richfaces/toolBar/images/new.gif"></h:graphicImage>
-		  <h:graphicImage value="/richfaces/toolBar/images/webapp_welcome.gif"></h:graphicImage>
-		  <h:graphicImage value="/richfaces/toolBar/images/palette_edit.gif"></h:graphicImage>
-	  </rich:toolBarGroup>
-	  <rich:toolBarGroup>
-		  <h:graphicImage value="/richfaces/toolBar/images/print_edit.gif"></h:graphicImage>
-		  <h:graphicImage value="/richfaces/toolBar/images/print.gif"></h:graphicImage>
-		  <h:graphicImage value="/richfaces/toolBar/images/print_preview.gif"></h:graphicImage>
-	  </rich:toolBarGroup>
-	  <rich:toolBarGroup location="right">
-		  <h:graphicImage value="/richfaces/toolBar/images/yellow_lamp.gif"></h:graphicImage>
-		  <h:graphicImage value="/richfaces/toolBar/images/timer_task.gif"></h:graphicImage>
-	  </rich:toolBarGroup>
-	</rich:toolBar>
+<rich:panel id="sample1" styleClass="tooltip-text">
+	<rich:toolTip>
+		<span>
+			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>
+	</rich:toolTip>
+	<p>
+		Here you can see <b>default client-side</b> tool-tip
+	</p>
+</rich:panel>
 
-</div>
+<rich:panel id="sample2" styleClass="tooltip-text">
+	<rich:toolTip followMouse="true" direction="top-right" delay="500" styleClass="tooltip" style="width:250px">
+		<span>
+			This tool-tip content also <strong>pre-rendered</strong> to the page.
+			However, the look of this tool-tip is customized by styleClass attribute.
+		</span>
+	</rich:toolTip>
+	<p>
+		This tool-tip will <b>follow mouse</b>. Also this tool-tip has a <b>delay 0.5 sec</b>, so be patient!
+	</p>
+</rich:panel>
 
-<div class="sample-container" >
-	<h:form>
-	<rich:toolBar height="34" itemSeparator="line">
-		<rich:toolBarGroup>
-		  <h:graphicImage id="edit" value="/richfaces/toolBar/images/print_edit.gif"></h:graphicImage>
-		  <h:outputLabel value="Edit" for="edit"></h:outputLabel>
-		</rich:toolBarGroup>
-		<rich:toolBarGroup>						  
-		  <h:graphicImage id="print" value="/richfaces/toolBar/images/print.gif"></h:graphicImage>
-		  <h:outputLabel value="Print" for="edit"></h:outputLabel>
-		</rich:toolBarGroup>
-		<rich:toolBarGroup>						  
-		  <h:graphicImage id="preview" value="/richfaces/toolBar/images/print_preview.gif"></h:graphicImage>
-		  <h:outputLabel value="Preview" for="preview"></h:outputLabel>
-		</rich:toolBarGroup>
-		<rich:toolBarGroup location="right">
-			<h:inputText styleClass="barsearch" />
-			<h:commandButton styleClass="barsearchbutton" onclick="return false;"  value="Search" />
-		</rich:toolBarGroup>
-	</rich:toolBar>
-	</h:form>
-	</div>
+<h:form>
+<rich:panel  id="sample3" styleClass="tooltip-text">
+	<rich:toolTip direction="top-right" mode="ajax" styleClass="tooltip">
+		<f:facet name="defaultContent">
+			<strong>Wait...</strong>
+		</f:facet>
+		<span >This tool-tip content was <strong>rendered on server</strong> </span>
+		<h:panelGrid columns="2">
+			<h:outputText value="tooltips requested:" />
+			<h:outputText value="#{toolTipData.tooltipCounter}" styleClass="tooltipData" />
+		</h:panelGrid>
+	</rich:toolTip>
+	<p>
+		This tool-tip rendered on server <b>in separate request</b>.
+	</p>
+</rich:panel>
+</h:form>
 
-
-<p>
-	The items on the toolBar can be grouped with ability to define the separator
-	between the different group and between the member of the same group. The 
-	"location" attribute set to "right" put the group to the right side of the panel.
-	
-</p>
-<div class="sample-container" >
-	<h:form>
-		<h:panelGrid columns="2" width="100%">
-			<rich:panel>
-				<h:panelGrid columns="8">
-				<h:outputText value="Group Separator:" />
-				 <a4j:commandLink value="Line" reRender="bar">
-				 	<a4j:actionparam name="gs" value="line" assignTo="#{tbBean.groupSeparator}" />
-				 </a4j:commandLink>
-				 
-				 <a4j:commandLink value="Grid" reRender="bar">
-				 	<a4j:actionparam name="gs" value="grid" assignTo="#{tbBean.groupSeparator}" />
-				 </a4j:commandLink>
-				 
-				 <a4j:commandLink value="Disc" reRender="bar">
-				 	<a4j:actionparam name="gs" value="disc" assignTo="#{tbBean.groupSeparator}" />
-				 </a4j:commandLink>
-				 
-				 <a4j:commandLink value="Square" reRender="bar">
-				 	<a4j:actionparam name="gs" value="square" assignTo="#{tbBean.groupSeparator}" />
-				 </a4j:commandLink>
-				 
-				 <a4j:commandLink value="None" reRender="bar">
-				 	<a4j:actionparam name="gs" value="none" assignTo="#{tbBean.groupSeparator}" />
-				 </a4j:commandLink>
-				 </h:panelGrid>
-			</rich:panel>
-			<rich:panel>
-				<h:panelGrid columns="8">
-				<h:outputText value="Group Item Separator:" />
-				 <a4j:commandLink value="Line" reRender="bar">
-				 	<a4j:actionparam name="gs" value="line" assignTo="#{tbBean.groupItemSeparator}" />
-				 </a4j:commandLink>
-				 
-				 <a4j:commandLink value="Grid" reRender="bar">
-				 	<a4j:actionparam name="gs" value="grid" assignTo="#{tbBean.groupItemSeparator}" />
-				 </a4j:commandLink>
-
-				 <a4j:commandLink value="Disc" reRender="bar">
-				 	<a4j:actionparam name="gs" value="disc" assignTo="#{tbBean.groupItemSeparator}" />
-				 </a4j:commandLink>
-				 
-				 <a4j:commandLink value="Square" reRender="bar">
-				 	<a4j:actionparam name="gs" value="square" assignTo="#{tbBean.groupItemSeparator}" />
-				 </a4j:commandLink>
-				 
-				 <a4j:commandLink value="None" reRender="bar">
-				 	<a4j:actionparam name="gs" value="none" assignTo="#{tbBean.groupItemSeparator}" />
-				 </a4j:commandLink>
-				 </h:panelGrid>
-			</rich:panel>
-		</h:panelGrid>				
-	</h:form>	
-
-	<rich:toolBar id="bar" height="30" itemSeparator="#{tbBean.groupSeparator}">
-		<rich:toolBarGroup itemSeparator="#{tbBean.groupItemSeparator}">
-			<h:outputText value="Group1.1"></h:outputText>
-			<h:outputText value="Group1.2"></h:outputText>
-			<h:outputText value="Group1.3"></h:outputText>
-		</rich:toolBarGroup>
-		<rich:toolBarGroup itemSeparator="#{tbBean.groupItemSeparator}">
-			<h:outputText value="Group2.1"></h:outputText>
-			<h:outputText value="Group2.2"></h:outputText>
-		</rich:toolBarGroup>
-		<rich:toolBarGroup location="right"   itemSeparator="#{tbBean.groupItemSeparator}">
-			<h:outputText value="Group3.1"></h:outputText>
-			<h:outputText value="Group3.2"></h:outputText>
-		</rich:toolBarGroup>
-	</rich:toolBar>
-	
-</div>
+<h:form>
+<rich:panel  id="sample4" styleClass="tooltip-text">
+	<rich:toolTip event="onclick" direction="bottom-left" mode="ajax" styleClass="tooltip">
+		<f:facet name="defaultContent">
+			<strong>Wait...</strong>
+		</f:facet>
+		<span >This tool-tip content was <strong>rendered on server</strong> </span>
+		<h:panelGrid columns="2">
+			<h:outputText value="tooltips requested:" />
+			<h:outputText value="#{toolTipData.tooltipCounter}" styleClass="tooltipData" />
+		</h:panelGrid>
+	</rich:toolTip>
+	<p>
+		This tool-tip will be <b>activated on mouse click</b>. It also has a <b>bottom-left</b> position.
+	</p>
+</rich:panel>
+</h:form>
\ No newline at end of file




More information about the richfaces-svn-commits mailing list