[richfaces-svn-commits] JBoss Rich Faces SVN: r579 - in trunk/richfaces-samples/richfaces-demo/src/main: webapp/richfaces/dataTableScroller and 2 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Apr 26 16:04:02 EDT 2007


Author: SergeySmirnov
Date: 2007-04-26 16:04:02 -0400 (Thu, 26 Apr 2007)
New Revision: 579

Modified:
   trunk/richfaces-samples/richfaces-demo/src/main/java/org/richfaces/demo/dnd/DndBean.java
   trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/usage.xhtml
   trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/gmap/usage.xhtml
   trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/modalPanel/usage.xhtml
Log:
demo changes

Modified: trunk/richfaces-samples/richfaces-demo/src/main/java/org/richfaces/demo/dnd/DndBean.java
===================================================================
--- trunk/richfaces-samples/richfaces-demo/src/main/java/org/richfaces/demo/dnd/DndBean.java	2007-04-26 17:19:56 UTC (rev 578)
+++ trunk/richfaces-samples/richfaces-demo/src/main/java/org/richfaces/demo/dnd/DndBean.java	2007-04-26 20:04:02 UTC (rev 579)
@@ -64,13 +64,15 @@
 		frameworks.add(new Framework("ajaxCFC", "CF"));
 		frameworks.add(new Framework("AJAXEngine", "DNET"));
 		frameworks.add(new Framework("AjaxAC", "PHP"));
-		frameworks.add(new Framework("AJAXEngine", "DNET"));
 		frameworks.add(new Framework("MonoRail", "DNET"));
 		frameworks.add(new Framework("wddxAjax", "CF"));
 		frameworks.add(new Framework("AJAX AGENT", "PHP"));
 		frameworks.add(new Framework("FastPage", "DNET"));
 		frameworks.add(new Framework("JSMX", "CF"));
-		frameworks.add(new Framework("AJAXEngine", "DNET"));
+		frameworks.add(new Framework("PAJAJ", "PHP"));
+		frameworks.add(new Framework("Symfony", "PHP"));
+		frameworks.add(new Framework("PowerWEB", "DNET"));
+		
 		containerPHP = new ArrayList();
 		containerCF = new ArrayList();
 		containerDNET = new ArrayList();

Modified: trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/usage.xhtml
===================================================================
--- trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/usage.xhtml	2007-04-26 17:19:56 UTC (rev 578)
+++ trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/usage.xhtml	2007-04-26 20:04:02 UTC (rev 579)
@@ -18,7 +18,7 @@
 
 		<div class="sample-container">
 		<h:form>
-			<rich:datascroller  for="carList" maxPages="20" />
+			<rich:datascroller align="left"  for="carList" maxPages="20" />
 			<rich:spacer height="30" />
 			<rich:dataTable width="483" id="carList" rows="10" columnClasses="col"
 				value="#{dataTableScrollerBean.allCars}" var="category">

Modified: trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/gmap/usage.xhtml
===================================================================
--- trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/gmap/usage.xhtml	2007-04-26 17:19:56 UTC (rev 578)
+++ trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/gmap/usage.xhtml	2007-04-26 20:04:02 UTC (rev 579)
@@ -28,7 +28,7 @@
 			</p>
 			
 			<h:panelGrid columns="2">
-				<rich:gmap gmapVar="map" zoom="#{gmBean.zoom}"  style="width:400px;height:400px" gmapKey="#{gmBean.gmapkey}" />
+				<rich:gmap  gmapVar="map" zoom="#{gmBean.zoom}"  style="width:400px;height:400px" gmapKey="#{gmBean.gmapkey}" />
 				
 				<h:panelGroup>
 					<rich:tabPanel switchType="ajax" width="350" height="400">

Modified: trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/modalPanel/usage.xhtml
===================================================================
--- trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/modalPanel/usage.xhtml	2007-04-26 17:19:56 UTC (rev 578)
+++ trunk/richfaces-samples/richfaces-demo/src/main/webapp/richfaces/modalPanel/usage.xhtml	2007-04-26 20:04:02 UTC (rev 579)
@@ -7,8 +7,15 @@
 	xmlns:rich="http://richfaces.ajax4jsf.org/rich">
 <ui:composition template="/templates/component-sample.xhtml">
 	<ui:define name="sample">
+<script>
+ function getRightTop(ref) {
+   var position = new Object();
+   position.top = 0; //ref.offsetTop;
+   position.left =0; // ref.offsetLeft+ref.clientWidth+6;
+   return position;
+ }
+</script>
 
-
 		<p>RichFaces Modal Panel is a container that blocks the operation on the base page when the modal 
 		panel is shown.</p>
 		<p>You can show the modal panel using the folowing javascript function: Richfaces.hideModalPanel(id, params). 
@@ -16,8 +23,8 @@
 		Richfaces.showModalPanel('mp',{width:450, top:200})</a></p>
 		<div class="sample-container">
 		
+		<button onclick="var pos=getRightTop(this);alert(pos.left);Richfaces.showModalPanel('mp',{top:pos.top, left:pos.left})">Show on the Right</button>
 
-
 		<rich:modalPanel  id="mp" minHeight="200" minWidth="450" 
 			height="200" width="500" zindex="2000">
 			<f:facet name="header">




More information about the richfaces-svn-commits mailing list