[richfaces-svn-commits] JBoss Rich Faces SVN: r4540 - in branches/3.1.x/samples/richfaces-demo/src/main: resources/org/richfaces/demo/common and 6 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Dec 6 05:52:46 EST 2007


Author: ilya_shaikovsky
Date: 2007-12-06 05:52:45 -0500 (Thu, 06 Dec 2007)
New Revision: 4540

Added:
   branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl.xhtml
   branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/
   branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/
   branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/cmenuusage.xhtml
   branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/control.xhtml
   branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml
   branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/usage.xhtml
Modified:
   branches/3.1.x/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
   branches/3.1.x/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
   branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/example/menu.xhtml
   branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/usage.xhtml
   branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml
Log:
Component control and context menu demos updated

Modified: branches/3.1.x/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java	2007-12-06 09:43:13 UTC (rev 4539)
+++ branches/3.1.x/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java	2007-12-06 10:52:45 UTC (rev 4540)
@@ -73,6 +73,15 @@
 		return allCars;
 	}
 
+	public List<DemoInventoryItem> getTenRandomCars() {
+		List<DemoInventoryItem> result = new ArrayList<DemoInventoryItem>();
+		int size = getAllCars().size()-1; 
+		for (int i = 0; i < 10; i++) {
+			result.add(getAllCars().get(rand(1, size)));
+		}
+		return result;
+	}
+	
 	public int genRand() {
 		return rand(1,10000);
 	}

Modified: branches/3.1.x/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties	2007-12-06 09:43:13 UTC (rev 4539)
+++ branches/3.1.x/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties	2007-12-06 10:52:45 UTC (rev 4540)
@@ -68,4 +68,5 @@
 page=               ajaxMisc,             Ajax Page,            /images/ico_common.gif,                 /images/cn_AjaxPage.gif,                 RichFacesComponentsLibrary.html#page,                                               jbossajax4jsf/freezone/docs/tlddoc/a4j/page.html,                 jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxRegion.html,                        /richfaces/page.jsf
 portlet=            ajaxMisc,             Ajax Portlet,         /images/ico_common.gif,                 /images/cn_AjaxPortlet.gif,              RichFacesComponentsLibrary.html#portlet,                                            jbossajax4jsf/freezone/docs/tlddoc/a4j/portlet.html,              jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIPortlet.html,                           /richfaces/portlet.jsf
 effect=             richMisc,             Effect,               /images/ico_common.gif,                 /images/cn_Effect.gif,                   RichFacesComponentsLibrary.html#effect,                                             jbossrichfaces/freezone/docs/tlddoc/rich/effect.html,             jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIEffect.html,                     /richfaces/effect.jsf
-contextMenu=        richMenu,             Context Menu,         /images/ico_dropDownMenu.gif,           /images/cn_DropDownMenu.gif,             RichFacesComponentsLibrary.html#contextMenu,                                        jbossrichfaces/freezone/docs/tlddoc/rich/contextMenu.html,        jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIContextMenu.html,                /richfaces/contextMenu.jsf
\ No newline at end of file
+contextMenu=		richMenu,             Context Menu,         /images/ico_dropDownMenu.gif,           /images/cn_DropDownMenu.gif,             RichFacesComponentsLibrary.html\#contextMenu,                                        jbossrichfaces/freezone/docs/tlddoc/rich/contextMenu.html,        jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIContextMenu.html,                /richfaces/contextMenu.jsf
+componentControl=   richMisc,        Component Control,    /images/ico_dropDownMenu.gif,           /images/cn_DropDownMenu.gif,             RichFacesComponentsLibrary.html\#componentControl,                                 jbossrichfaces/freezone/docs/tlddoc/rich/componentControl.html,        jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIcomponentControl.html,                /richfaces/componentControl.jsf
\ No newline at end of file

Added: branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/cmenuusage.xhtml
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/cmenuusage.xhtml	                        (rev 0)
+++ branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/cmenuusage.xhtml	2007-12-06 10:52:45 UTC (rev 4540)
@@ -0,0 +1,58 @@
+<f:subview xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:a4j="http://richfaces.org/a4j"
+      xmlns:rich="http://richfaces.org/rich" id="subview"> 
+	<style>
+	.cur{
+		cursor:pointer; 
+	}
+	</style>
+	<h:form id="form">
+		
+		<rich:contextMenu attached="false" id="menu">
+			<rich:menuItem>
+				<b>{car} {model}</b> details
+			</rich:menuItem>
+			<rich:menuGroup value="Actions">  
+				<rich:menuItem>
+					Put <b>{car} {model}</b> To Basket
+				</rich:menuItem>
+				<rich:menuItem value="Read Comments"/>
+				<rich:menuItem>
+					Go to <b>{car}</b> site
+				</rich:menuItem>
+			</rich:menuGroup>
+		</rich:contextMenu> 
+		
+		<rich:dataTable value="#{dataTableScrollerBean.tenRandomCars}" var="car" id="table"
+		onRowMouseOver="this.style.backgroundColor='#F8F8F8'"
+		onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'" rowClasses="cur">
+			<rich:column>
+				<f:facet name="header">
+					Make
+				</f:facet>
+					<h:outputText value="#{car.make}"/>
+			</rich:column>
+			<rich:column>
+				<f:facet name="header">
+					Model
+				</f:facet>
+					<h:outputText value="#{car.model}"/>
+			</rich:column>
+			<rich:column>
+				<f:facet name="header">
+					Price
+				</f:facet>
+					<h:outputText value="#{car.price}" />
+			</rich:column>
+
+			<rich:componentControl event="onRowClick" for=":subview:form:menu" operation="doShow">
+				<f:param value="#{car.model}" name="model"/>
+				<f:param value="#{car.make}" name="car"/>
+			</rich:componentControl>
+
+		</rich:dataTable>		
+	</h:form>			
+</f:subview>
\ No newline at end of file

Added: branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/control.xhtml
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/control.xhtml	                        (rev 0)
+++ branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/control.xhtml	2007-12-06 10:52:45 UTC (rev 4540)
@@ -0,0 +1,48 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:a4j="http://richfaces.org/a4j"
+      xmlns:rich="http://richfaces.org/rich">
+	<style>
+	.atop{
+		vertical-align:top;
+	}
+	</style>
+		<p>RichFaces Component Control is a component that allows to manage any components 
+		with their client side JS API. 
+		</p>
+		<p>
+			In this simple example Component Control components attached to links and just calls "show" and "hide" 
+			functions on Modal Panel. 
+		</p>
+		<ui:include src="/richfaces/componentControl/examples/mpusage.xhtml" />
+		<rich:separator/>
+		<ui:include src="/templates/include/sourceview.xhtml">
+			<ui:param name="sourcepath" value="/richfaces/componentControl/examples/mpusage.xhtml"/>
+		</ui:include>		
+		
+		<p>
+			Another usefull feature - that Component Control component allows to transfer 
+			parameters to managed components. 
+		</p>
+		<p>
+			You may put <b>f:param</b> components as nested to component control component 
+			and all the parameters that defined will be available from target component.
+		</p>
+		<p>
+			In next example component control used inside <b>rich:dataTable</b> component. 
+			Component control defined with two parameters which has current row values.
+			So the <b>rich:contextMenu</b> component which called by this Component Control
+			will take this parameters and will be able to display them in its items values.  
+		</p>
+		<p>
+			Click at any table row to see the context menu that generated individually for
+			every row using parameters.
+		</p>
+		<ui:include src="/richfaces/componentControl/examples/cmenuusage.xhtml" />
+		<rich:separator/>
+		<ui:include src="/templates/include/sourceview.xhtml">
+			<ui:param name="sourcepath" value="/richfaces/componentControl/examples/cmenuusage.xhtml"/>
+		</ui:include>	      
+</ui:composition>
\ No newline at end of file

Added: branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml	                        (rev 0)
+++ branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/examples/mpusage.xhtml	2007-12-06 10:52:45 UTC (rev 4540)
@@ -0,0 +1,27 @@
+<f:subview xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:a4j="http://richfaces.org/a4j"
+      xmlns:rich="http://richfaces.org/rich"> 
+	<rich:modalPanel id="panel" width="350" height="100">
+		<f:facet name="header">
+			<h:panelGroup>
+				<h:outputText value="Modal Panel"></h:outputText>
+			</h:panelGroup>
+		</f:facet>
+		<f:facet name="controls">
+			<h:panelGroup>
+				<h:graphicImage value="/images/modal/close.png" style="cursor:pointer" id="hidelink"/>
+				<rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
+			</h:panelGroup>
+		</f:facet>
+		<h:outputText value="This panel called using Component Control Component"></h:outputText>
+		<br/>
+		<h:outputText value="Closure link (X) works aso througn Component Control"></h:outputText>
+	</rich:modalPanel> 
+	<h:outputLink value="#" id="link">
+		Show Modal Panel 
+		<rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>
+	</h:outputLink>
+</f:subview>
\ No newline at end of file

Added: branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/usage.xhtml
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/usage.xhtml	                        (rev 0)
+++ branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl/usage.xhtml	2007-12-06 10:52:45 UTC (rev 4540)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+	xmlns:ui="http://java.sun.com/jsf/facelets"
+	xmlns:h="http://java.sun.com/jsf/html"
+	xmlns:f="http://java.sun.com/jsf/core"
+	xmlns:a4j="http://richfaces.org/a4j"
+	xmlns:rich="http://richfaces.org/rich">
+	<ui:composition template="/templates/component-sample.xhtml">
+		<ui:define name="sample">
+ 			
+			<div class="sample-container">
+
+				<ui:include src="/richfaces/componentControl/examples/control.xhtml"/>
+
+			</div>			
+
+		</ui:define>
+
+	</ui:composition>
+</html>

Added: branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl.xhtml
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl.xhtml	                        (rev 0)
+++ branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/componentControl.xhtml	2007-12-06 10:52:45 UTC (rev 4540)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+	xmlns:ui="http://java.sun.com/jsf/facelets"
+	xmlns:h="http://java.sun.com/jsf/html"
+	xmlns:f="http://java.sun.com/jsf/core"
+	xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+	<ui:define name="title">RichFaces - Open Source Rich JSF Components - Component Control Component</ui:define>
+	<ui:define name="body">
+		<rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class"  inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+			<rich:tab label="Usage">
+				<ui:include src="/richfaces/componentControl/usage.xhtml"/>
+			</rich:tab>			
+			<ui:include src="/templates/include/tagInfo.xhtml">
+				<ui:param name="path" value="rich/componentControl"/>
+			</ui:include>		
+		</rich:tabPanel>
+	</ui:define>
+</ui:composition>
+</html>

Modified: branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/example/menu.xhtml
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/example/menu.xhtml	2007-12-06 09:43:13 UTC (rev 4539)
+++ branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/example/menu.xhtml	2007-12-06 10:52:45 UTC (rev 4540)
@@ -1,59 +1,31 @@
 <ui:composition xmlns="http://www.w3.org/1999/xhtml"
-      xmlns:ui="http://java.sun.com/jsf/facelets"
-      xmlns:h="http://java.sun.com/jsf/html"
-      xmlns:f="http://java.sun.com/jsf/core"
-      xmlns:a4j="http://richfaces.org/a4j"
-      xmlns:rich="http://richfaces.org/rich">
+	xmlns:ui="http://java.sun.com/jsf/facelets"
+	xmlns:h="http://java.sun.com/jsf/html"
+	xmlns:f="http://java.sun.com/jsf/core"
+	xmlns:a4j="http://richfaces.org/a4j"
+	xmlns:rich="http://richfaces.org/rich">
+	<style>
+	.cent{
+		text-align:center;
+	}
+</style>
+	<h:panelGrid columns="1" columnClasses="cent,cent,cent,cent" cellspacing="10px">
+			
+			<h:outputText value="Perform right-click on the picture to call the menu" style="font-weight:bold"></h:outputText>
 
-	<h:form id="form">
-		<rich:contextMenu attached="false" id="menu" submitMode="ajax">
-			<rich:menuItem value="Show Details">
-				<a4j:actionparam name="current" value="Show Details" assignTo="#{ddmenu.current}"/>
-			</rich:menuItem>
-			<rich:menuGroup value="Actions">
-				<rich:menuItem value="Put To Basket">
-					<a4j:actionparam name="current" value="Put To Basket" assignTo="#{ddmenu.current}"/>
-				</rich:menuItem>
-				<rich:menuItem value="Read Comments">
-					<a4j:actionparam name="current" value="Read Comments" assignTo="#{ddmenu.current}"/>
-				</rich:menuItem>
-				<rich:menuItem value="Go to {car} {model} site">
-					<a4j:actionparam name="current" value="Go to #{car.make} #{car.model} site" assignTo="#{ddmenu.current}"/>
-				</rich:menuItem>				
-			</rich:menuGroup>
-		</rich:contextMenu> 
-		<rich:dataGrid value="#{dataTableScrollerBean.allCars}" var="car" columns="4" elements="12">
-			<rich:panel id="panel">
-				<rich:componentControl attachTo="panel" event="oncontextmenu" for=":form:menu" operation="doShow">
-					<f:param value="#{car.model}" name="model"/>
-					<f:param value="#{car.make}" name="car"/>
-				</rich:componentControl>
-				<f:facet name="header">
-					<h:outputText value="#{car.make} #{car.model}"/>
-				</f:facet>
-				<h:panelGrid columns="2">
-					<h:outputText value="Price:" styleClass="label"/>
-					<h:outputText value="#{car.price}" />
-					<h:outputText value="Mileage:" styleClass="label"/>
-					<h:outputText value="#{car.mileage}" />
-					<h:outputText value="VIN:" styleClass="label"/>
-					<h:outputText value="#{car.vin}" />
-					<h:outputText value="Stock:" styleClass="label"/>
-					<h:outputText value="#{car.stock}" />
-				</h:panelGrid>
-			</rich:panel>
-			<f:facet name="footer">
-				<rich:datascroller/>
-			</f:facet>
-		</rich:dataGrid>		
-		<rich:spacer height="30px"/>
-		<a4j:outputPanel ajaxRendered="true">
-			<rich:panel>
-				<f:facet name="header">
-					<h:outputText value="Last actions fired:"/>
-				</f:facet>
-				<h:outputText value="#{ddmenu.current}"/>
-			</rich:panel>
-		</a4j:outputPanel>
-	</h:form>	
+			<h:panelGroup>
+				<h:graphicImage value="/richfaces/jQuery/images/pic1.jpg" id="pic"/>
+				<rich:contextMenu event="oncontextmenu" attached="true">
+					<rich:menuItem value="Enlarge"></rich:menuItem>
+					<rich:menuItem value="Open in new window"></rich:menuItem>
+					<rich:menuGroup value="Save">
+						<rich:menuItem value="Download image"></rich:menuItem>
+						<rich:menuItem value="Copy to clipboard"></rich:menuItem>
+						<rich:menuItem value="Copy image adress"></rich:menuItem>
+					</rich:menuGroup>
+				</rich:contextMenu>
+			</h:panelGroup>
+
+	</h:panelGrid>
+
 </ui:composition>
\ No newline at end of file

Modified: branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/usage.xhtml
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/usage.xhtml	2007-12-06 09:43:13 UTC (rev 4539)
+++ branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/contextMenu/usage.xhtml	2007-12-06 10:52:45 UTC (rev 4540)
@@ -10,13 +10,10 @@
 
 
 			
-			<p>RichFaces Context menu is a component that allows to organize the hierarchical popup menus
+			<p>RichFaces Context menu is a component that allows to organize the hierarchical cointext menus
 			similar to one that almost every desktop application has.
 			</p>
-			
-			<p>
-				To call the menu - perform right click inside any car info panel. After you click some item - panel above the grid will be updated.
-			</p>
+			<p><b>Example:</b>To call the menu - perform the right click on the picture</p>
 			<div class="sample-container">
 
 				<ui:include src="/richfaces/contextMenu/example/menu.xhtml"/>
@@ -25,18 +22,52 @@
 				</ui:include>		
 
 			</div>			
-			<p>The context menu is an invisible panel
+			 <p>Context Menu can contains a set of Menu Items, Menu Groups and Menu Separators.
+			 Usage of these components are similar to usage in RichFaces Drop Down Menu.
+			</p>
+			<p>Context menu itself is an invisible panel
 			 that appears after a particular client side event (onmouseover, onclick etc) occured on parent component. 
-			 The event is defined with an 'event' attribute.</p>
-			 
-			 <p>Context Menu can contains a set of Menu Items, Menu Groups and Menu Separators. 
-			 Group plays a role of label for secondary levels on the menu. Separator is represented with 
-			 horizontal lines between the items or groups. An item is an active element that might produce
-			 Ajax or non-Ajax requests. The submittion mode is defined with 'submitMode' attribute that has
-			 three possible options - "server", "ajax" or "none". Mode "none" does not produce any request, but
-			 allows you to provide your own functionality inside the menu item with an inline content.
+			 The event is defined with an <b>event</b> attribute.</p>
+			 <p>
+			 	Other usefull attributes are:
+			 	<ul> 
+			 		<li>
+			 			<b>disableDefaultMenu</b> - if true the event which defined on the menu
+			 			will not be handled by other client handlers except context menu handler. You 
+			 			may see on the first example that standard browser menu isn't called
+			 			after right click.    
+			 		</li>
+			 		<li>
+			 			<b>attached</b> if true - the menu attached to parent component. In other case
+			 			it should be called via JS API (using componentControl)
+			 		</li>
+			 	</ul>
+			 </p>
+			 <p>
+			 	Unlike dropDownMenu, contextMenu has no representation element, and has strong right-click
+			 	support.
+			 </p>
+			 <p>
+			 	And the main difference from drop down menu - context menu could be defined once on the page 
+			 	and used by different components. Single instance of the menu will be created and shared between the components.
+			 </p>
+			 <p>
+			 	To customize shared menu for every component macrosubstitutions could be used.
+			 	<b>ComponentControl</b> component could be used to call the instance of the menu for 
+			 	the concrete component. <b>f:param</b> components could be used to add parameters to menu.
+			 </p>
+			<p>
+				<b>Example:</b> To call the menu - click any car row. 
 			</p>
-
+	        <ui:include src="/richfaces/componentControl/examples/cmenuusage.xhtml" />
+			<ui:include src="/templates/include/sourceview.xhtml">
+				<ui:param name="sourcepath" value="/richfaces/componentControl/examples/cmenuusage.xhtml"/>
+			</ui:include>
+			<p>	
+				Pay your attention to the source code. Inside the table you may see component control that calls the menu.
+				Menu recreated after every call on the client and new <b>{car}</b> and <b>{model}</b> values inserted to the menu. 
+			</p>
+			<p>Look through componentControl demo page for more information.</p>
 		</ui:define>
 
 	</ui:composition>

Modified: branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml	2007-12-06 09:43:13 UTC (rev 4539)
+++ branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml	2007-12-06 10:52:45 UTC (rev 4540)
@@ -11,9 +11,8 @@
 		  height:30px;
 		}
 	</style>
-	
 	<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}" id="gmap"/>
 		
 		<h:panelGroup>
 			<rich:tabPanel switchType="ajax" width="350" height="400">




More information about the richfaces-svn-commits mailing list