[richfaces-svn-commits] JBoss Rich Faces SVN: r5540 - in trunk/test-applications/facelets/src/main: java/message and 4 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Jan 22 12:27:36 EST 2008


Author: ayanul
Date: 2008-01-22 12:27:36 -0500 (Tue, 22 Jan 2008)
New Revision: 5540

Modified:
   trunk/test-applications/facelets/src/main/java/gmap/Gmap.java
   trunk/test-applications/facelets/src/main/java/message/Message.java
   trunk/test-applications/facelets/src/main/java/virtualEarth/VirtualEarth.java
   trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml
   trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml
   trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml
   trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml
   trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarth.xhtml
   trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-1863

Modified: trunk/test-applications/facelets/src/main/java/gmap/Gmap.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/gmap/Gmap.java	2008-01-22 17:27:01 UTC (rev 5539)
+++ trunk/test-applications/facelets/src/main/java/gmap/Gmap.java	2008-01-22 17:27:36 UTC (rev 5540)
@@ -1,26 +1,41 @@
 package gmap;
 
+/**
+ * @author user
+ *
+ */
 public class Gmap {
 
-	private String zoom;
 	private String continuousZoom;
 	private String doubleClickZoom;
 	private String dragging;
+	private String enableInfoWindow;
+	private String lat;
+	private String lng;
+	private String mapType;
+	private String showGLargeMapControl;
+	private String showGMapTypeControl;
+	private String showGScaleControl;
+	private String warningMessage;
+	private String zoom;
+	private boolean rendered;
 
 	public Gmap() {
+		zoom = "17";
+		mapType ="G_NORMAL_MAP";
+		lng = "44.44";
+		lat = "37.37";
+		warningMessage = "warning!!!";
+		showGLargeMapControl = "true";
+		showGMapTypeControl = "true";
+		showGScaleControl = "true";
+		enableInfoWindow = "true";
+		rendered = true;  
 		continuousZoom = "false";
 		doubleClickZoom = "false";
 		dragging = "false";
 	}
 
-	public String getZoom() {
-		return zoom;
-	}
-
-	public void setZoom(String zoom) {
-		this.zoom = zoom;
-	}
-
 	public String act() {
 		zoom = "17";
 		System.out.println("zoom=" + zoom);
@@ -44,11 +59,90 @@
 	}
 
 	public String getDragging() {
-		
 		return dragging;
 	}
 
 	public void setDragging(String dragging) {
-		this.dragging = dragging; 
+		this.dragging = dragging;
 	}
+
+	public String getEnableInfoWindow() {
+		return enableInfoWindow;
+	}
+
+	public void setEnableInfoWindow(String enableInfoWindow) {
+		this.enableInfoWindow = enableInfoWindow;
+	}
+
+	public String getLat() {
+		return lat;
+	}
+
+	public void setLat(String lat) {
+		this.lat = lat;
+	}
+
+	public String getLng() {
+		return lng;
+	}
+
+	public void setLng(String lng) {
+		this.lng = lng;
+	}
+
+	public String getMapType() {
+		return mapType;
+	}
+
+	public void setMapType(String mapType) {
+		this.mapType = mapType;
+	}
+
+	public String getShowGLargeMapControl() {
+		return showGLargeMapControl;
+	}
+
+	public void setShowGLargeMapControl(String showGLargeMapControl) {
+		this.showGLargeMapControl = showGLargeMapControl;
+	}
+
+	public String getShowGMapTypeControl() {
+		return showGMapTypeControl;
+	}
+
+	public void setShowGMapTypeControl(String showGMapTypeControl) {
+		this.showGMapTypeControl = showGMapTypeControl;
+	}
+
+	public String getShowGScaleControl() {
+		return showGScaleControl;
+	}
+
+	public void setShowGScaleControl(String showGScaleControl) {
+		this.showGScaleControl = showGScaleControl;
+	}
+
+	public String getWarningMessage() {
+		return warningMessage;
+	}
+
+	public void setWarningMessage(String warningMessage) {
+		this.warningMessage = warningMessage;
+	}
+
+	public String getZoom() {
+		return zoom;
+	}
+
+	public void setZoom(String zoom) {
+		this.zoom = zoom;
+	}
+
+	public boolean isRendered() {
+		return rendered;
+	}
+
+	public void setRendered(boolean rendered) {
+		this.rendered = rendered;
+	}
 }

Modified: trunk/test-applications/facelets/src/main/java/message/Message.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/message/Message.java	2008-01-22 17:27:01 UTC (rev 5539)
+++ trunk/test-applications/facelets/src/main/java/message/Message.java	2008-01-22 17:27:36 UTC (rev 5540)
@@ -7,6 +7,7 @@
 	private boolean showDetail;
 	private boolean showSummary;
 	private boolean tooltip;
+	private boolean globalOnly;
 	private String select1;
 	private String select2;
 	private String select3;
@@ -20,6 +21,7 @@
 		showDetail = true;
 		showSummary = false;
 		tooltip = true;
+		globalOnly = false;
 		select1 = "error";
 		select2 = "error";
 		select3 = "error";
@@ -184,4 +186,12 @@
 		setSelect4("passed");
 		setSelect5("warn");		
 	}
+
+	public boolean isGlobalOnly() {
+		return globalOnly;
+	}
+
+	public void setGlobalOnly(boolean globalOnly) {
+		this.globalOnly = globalOnly;
+	}
 }

Modified: trunk/test-applications/facelets/src/main/java/virtualEarth/VirtualEarth.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/virtualEarth/VirtualEarth.java	2008-01-22 17:27:01 UTC (rev 5539)
+++ trunk/test-applications/facelets/src/main/java/virtualEarth/VirtualEarth.java	2008-01-22 17:27:36 UTC (rev 5540)
@@ -3,7 +3,69 @@
 public class VirtualEarth {
 	private String zoom;
 	private String version;
+	private String lat;
+	private String lng;
+	private boolean rendered;
+	private String dashboardSize;
+	private String mapStyle;
 
+	public VirtualEarth() {
+		version = "6";
+		zoom = "17";
+		version = "6";
+		lat = "37.37";
+		lng = "44.44";
+		dashboardSize = "Normal";
+		mapStyle = "Hybrid";
+		rendered = true;
+	}
+	
+	public String getLat() {
+		return lat;
+	}
+
+	public void setLat(String lat) {
+		double d = Double.parseDouble(lat);
+		if(-97 < d && d < 97)
+			this.lat = lat;
+		else this.lat = "0";
+	}
+
+	public String getLng() {
+		return lng;
+	}
+
+	public void setLng(String lng) {
+		double d = Double.parseDouble(lng);
+		if(-180 < d && d < 180)
+			this.lng = lng;
+		else this.lng = "0";
+	}
+
+	public boolean isRendered() {
+		return rendered;
+	}
+
+	public void setRendered(boolean rendered) {
+		this.rendered = rendered;
+	}
+
+	public String getDashboardSize() {
+		return dashboardSize;
+	}
+
+	public void setDashboardSize(String dashboardSize) {
+		this.dashboardSize = dashboardSize;
+	}
+
+	public String getMapStyle() {
+		return mapStyle;
+	}
+
+	public void setMapStyle(String mapStyle) {
+		this.mapStyle = mapStyle;
+	}
+
 	public String getVersion() {
 		return version;
 	}

Modified: trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml	2008-01-22 17:27:01 UTC (rev 5539)
+++ trunk/test-applications/facelets/src/main/webapp/Gmap/Gmap.xhtml	2008-01-22 17:27:36 UTC (rev 5540)
@@ -1,51 +1,44 @@
 
 <f:subview xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="GmapSubviewID">
-		<rich:gmap id="gm" lat="37.97" zoom="#{gmap.zoom}" gmapVar="map" onclick="showEvent('onclickInputID', 'onclick work!')" 
-		ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" 
-		onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')" onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" 
-		onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')" onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')" 
-		onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')" 
+	<rich:gmap id="gMapID" enableInfoWindow="#{gmap.enableInfoWindow}" mapType="#{gmap.mapType}" lng="#{gmap.lng}" lat="#{gmap.lat}"
+		warningMessage="#{gmap.warningMessage}" rendered="#{gmap.rendered}" zoom="#{gmap.zoom}"
+		enableContinuousZoom="#{gmap.continuousZoom}" enableDoubleClickZoom="#{gmap.doubleClickZoom}" enableDragging="#{gmap.dragging}"
+		gmapVar="map" oninit="alert('init ...')" showGLargeMapControl="#{gmap.showGLargeMapControl}" showGMapTypeControl="#{gmap.showGMapTypeControl}"
+		showGScaleControl="#{gmap.showGScaleControl}" onclick="showEvent('onclickInputID', 'onclick work!')"
+		ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+		onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+		onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')"
+		onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
+		onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
 		onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"
-			gmapKey="ABQIAAAAxU6W9QEhFLMNdc3ATIu-VxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxRkrpOGzxH8_ud3inE9pG1845-FCA"
-			style="width:500px;height:400px"
-			enableContinuousZoom="#{gmap.continuousZoom}"
-			enableDoubleClickZoom="#{gmap.doubleClickZoom}"
-			enableDragging="#{gmap.dragging}" />
+		gmapKey="ABQIAAAAxU6W9QEhFLMNdc3ATIu-VxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxRkrpOGzxH8_ud3inE9pG1845-FCA" />
 
-		<h:panelGroup>
-			<f:verbatim>
+	<h:panelGroup>
+		<f:verbatim>
 		Controls:<br />
-				<a href="javascript:void(0);"
-					onclick="map.hideControls();return false;">Remove</a>
-				<a href="javascript:void(0);"
-					onclick="map.showControls();return false;">Show</a>
-				<br />
-				<br />
+			<a href="javascript:void(0);" onclick="map.hideControls();return false;">Remove</a>
+			<a href="javascript:void(0);" onclick="map.showControls();return false;">Show</a>
+			<br />
+			<br />
 		Type:<br />
-				<a href="javascript:void(0);"
-					onclick="map.setMapType(G_NORMAL_MAP);return false;">Normal</a>
-				<a href="javascript:void(0);"
-					onclick="map.setMapType(G_SATELLITE_MAP);return false;">Satellite</a>
-				<a href="javascript:void(0);"
-					onclick="map.setMapType(G_HYBRID_MAP);return false;">Hybrid</a>
-				<br />
-				<br />
+			<a href="javascript:void(0);" onclick="map.setMapType(G_NORMAL_MAP);return false;">Normal</a>
+			<a href="javascript:void(0);" onclick="map.setMapType(G_SATELLITE_MAP);return false;">Satellite</a>
+			<a href="javascript:void(0);" onclick="map.setMapType(G_HYBRID_MAP);return false;">Hybrid</a>
+			<br />
+			<br />
 		Zoom:<br />
-				<a href="javascript:void(0);" onclick="map.zoomIn();return false;">In</a>
-				<a href="javascript:void(0);" onclick="map.zoomOut();return false;">Out</a>
-				<br />
-				<br />
-				<a href="javascript:void(0);" onclick="showExadel();return false;">Show
-				Exadel Office</a>
-				<br />
-				<a href="javascript:void(0);"
-					onclick="showExadelInMinsk();return false;">Show Exadel in
-				Belarus</a>
-			</f:verbatim>
-		</h:panelGroup>
+			<a href="javascript:void(0);" onclick="map.zoomIn();return false;">In</a>
+			<a href="javascript:void(0);" onclick="map.zoomOut();return false;">Out</a>
+			<br />
+			<br />
+			<a href="javascript:void(0);" onclick="showExadel();return false;">Show Exadel Office</a>
+			<br />
+			<a href="javascript:void(0);" onclick="showExadelInMinsk();return false;">Show Exadel in Belarus</a>
+		</f:verbatim>
+	</h:panelGroup>
 
-		<a4j:outputPanel>
-			<script>
+	<a4j:outputPanel>
+		<script>
 	   
       function createMarker(point,html) {
         var marker = new GMarker(point);
@@ -77,6 +70,6 @@
       	 var ul = G_NORMAL_MAP.getProjection().fromPixelToLatLng(ulp,zoom);
 	    }
 	   </script>
-		</a4j:outputPanel>
+	</a4j:outputPanel>
 
 </f:subview>

Modified: trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml	2008-01-22 17:27:01 UTC (rev 5539)
+++ trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml	2008-01-22 17:27:36 UTC (rev 5540)
@@ -1,6 +1,34 @@
 
 <f:subview xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="GmapPropertySubviewID">
 		<h:panelGrid columns="2">
+			<h:outputText value="mapType"></h:outputText>
+			<h:selectOneMenu value="#{gmap.mapType}" onchange="submit();">
+				<f:selectItem itemLabel="G_NORMAL_MAP" itemValue="G_NORMAL_MAP"/>
+				<f:selectItem itemLabel="G_SATELLITE_MAP" itemValue="G_SATELLITE_MAP"/>
+				<f:selectItem itemLabel="G_HYBRID_MAP" itemValue="G_HYBRID_MAP"/>
+			</h:selectOneMenu>
+
+			<h:outputText value="enableInfoWindow:"></h:outputText>
+			<h:selectBooleanCheckbox value="#{gmap.enableInfoWindow}" onclick="submit()" ></h:selectBooleanCheckbox>
+			
+			<h:outputText value="showGLargeMapControl:"></h:outputText>
+			<h:selectBooleanCheckbox value="#{gmap.showGLargeMapControl}" onclick="submit()" ></h:selectBooleanCheckbox>
+
+			<h:outputText value="showGMapTypeControl:"></h:outputText>
+			<h:selectBooleanCheckbox value="#{gmap.showGMapTypeControl}" onclick="submit()" ></h:selectBooleanCheckbox>
+
+			<h:outputText value="showGScaleControl:"></h:outputText>
+			<h:selectBooleanCheckbox value="#{gmap.showGScaleControl}" onclick="submit()" ></h:selectBooleanCheckbox>
+			
+			<h:outputText value="warningMessage:"></h:outputText>
+			<h:inputText value="#{gmap.warningMessage}" onclick="submit()" ></h:inputText>
+			
+			<h:outputText value="lng:"></h:outputText>
+			<h:inputText value="#{gmap.lng}" onclick="submit()" ></h:inputText>
+			
+			<h:outputText value="lat:"></h:outputText>
+			<h:inputText value="#{gmap.lat}" onclick="submit()" ></h:inputText>
+			
 			<h:outputText value="Dragging:" />
 			<h:selectBooleanCheckbox value="#{gmap.dragging}" onclick="submit()" />
 
@@ -9,5 +37,8 @@
 
 			<h:outputText value="Double Click Zoom:" />
 			<h:selectBooleanCheckbox value="#{gmap.doubleClickZoom}" onclick="submit()" />
+			
+			<h:outputText value="rendered:"></h:outputText>
+			<h:selectBooleanCheckbox value="#{gmap.rendered}" onchange="submit();"></h:selectBooleanCheckbox>
 		</h:panelGrid>
 </f:subview>
\ No newline at end of file

Modified: trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml	2008-01-22 17:27:01 UTC (rev 5539)
+++ trunk/test-applications/facelets/src/main/webapp/Message/Message.xhtml	2008-01-22 17:27:36 UTC (rev 5540)
@@ -36,7 +36,7 @@
 			<rich:separator></rich:separator>
 
 			<h:outputText value="Rich Messages Demo" />
-			<rich:messages layout="#{message.layout}" tooltip="#{message.tooltip}" showDetail="#{message.showDetail}"
+			<rich:messages layout="#{message.layout}" globalOnly="#{message.globalOnly}" tooltip="#{message.tooltip}" showDetail="#{message.showDetail}"
 				showSummary="#{message.showSummary}" passedLabel="No Error" errorLabelClass="errorLabel" fatalLabelClass="warnLabel"
 				infoLabelClass="infoLabel" warnLabelClass="fatalLabel" warnMarkerClass="markerWarn" infoMarkerClass="markerInfo"
 				errorMarkerClass="markerError" fatalMarkerClass="markerFatal" errorClass="errorClass" fatalClass="fatalClass"

Modified: trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml	2008-01-22 17:27:01 UTC (rev 5539)
+++ trunk/test-applications/facelets/src/main/webapp/Message/MessageProperty.xhtml	2008-01-22 17:27:36 UTC (rev 5540)
@@ -63,6 +63,9 @@
 
 				<h:outputText value="Title:" />
 				<h:inputText value="#{message.title}" />
+				
+				<h:outputText value="globalOnly"></h:outputText>
+				<h:selectBooleanCheckbox value="#{message.globalOnly}"></h:selectBooleanCheckbox>
 
 				<h:outputText value="Show Detail:" />
 				<h:selectBooleanCheckbox value="#{message.showDetail}" />

Modified: trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarth.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarth.xhtml	2008-01-22 17:27:01 UTC (rev 5539)
+++ trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarth.xhtml	2008-01-22 17:27:36 UTC (rev 5540)
@@ -1,18 +1,20 @@
 
 <f:subview xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="virtualEarthSubviewID">
-		<h:panelGrid columns="2">
-			<rich:virtualEarth style="width:800px;" version="#{virtualEarth.version}" id="gm" lat="37.97" dashboardSize="Normal" zoom="#{virtualEarth.zoom}"
-				mapStyle="Hybrid" var="map" onclick="showEvent('onclickInputID', 'onclick work!')"
-				ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
-				onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
-				onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')"
-				onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')" onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
-				onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')"/>
+	<h:panelGrid columns="2">
 
-		</h:panelGrid>
+		<rich:virtualEarth id="vEarthID" lng="#{virtualEarth.lng}" onLoadMap="alert('LoadMap')" rendered="#{virtualEarth.rendered}" version="#{virtualEarth.version}" lat="#{virtualEarth.lat}" zoom="#{virtualEarth.zoom}"
+			dashboardSize="#{virtualEarth.dashboardSize}" mapStyle="#{virtualEarth.mapStyle}" var="map" onclick="showEvent('onclickInputID', 'onclick work!')"
+			ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')" onkeydown="showEvent('onkeydownInputID', 'onkeydown work!')"
+			onkeypress="showEvent('onkeypressInputID', 'onkeypress work!')" onkeyup="showEvent('onkeyupInputID', 'onkeyup work!')"
+			onmousedown="showEvent('onmousedownInputID', 'onmousedown work!')"
+			onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
+			onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
+			onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')" onmouseup="showEvent('onmouseupInputID', 'onmouseup work!')" />
 
-		<a4j:outputPanel>
-			<script>
+	</h:panelGrid>
+
+	<a4j:outputPanel>
+		<script>
       function createMarker(point,html) {
         var marker = new GMarker(point);
         GEvent.addListener(marker, "click", function() {
@@ -26,10 +28,10 @@
 		map.SetMapStyle(VEMapStyle.Birdseye);
 	   }
 	    function showExadelInMinsk() {
-	    var point = new VELatLong(53.92316,27.510737, 53.92316,27.510737);
+	    var point = new VELatLong(53.92316,27.510737);
 		map.SetCenterAndZoom(point, 16);
 		map.SetMapStyle(VEMapStyle.Birdseye);
 	   }
 	   </script>
-		</a4j:outputPanel>
+	</a4j:outputPanel>
 </f:subview>

Modified: trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml	2008-01-22 17:27:01 UTC (rev 5539)
+++ trunk/test-applications/facelets/src/main/webapp/VirtualEarth/VirtualEarthProperty.xhtml	2008-01-22 17:27:36 UTC (rev 5540)
@@ -1,27 +1,52 @@
 
 <f:subview xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="virtualEarthPropertySubviewID">
-			<h:panelGroup>
-				<f:verbatim>
+	<h:panelGrid columns="2">
+		<h:outputText value="lat(-97 < x < 97):"></h:outputText>
+		<h:inputText value="#{virtualEarth.lat}" onchange="submit();"></h:inputText>
+		
+		<h:outputText value="lng(-180 < x < 180):"></h:outputText>
+		<h:inputText value="#{virtualEarth.lng}" onchange="submit();"></h:inputText>
+
+		<h:outputText value="dashboardSize"></h:outputText>
+		<h:selectOneMenu value="#{virtualEarth.dashboardSize}" onchange="submit();">
+			<f:selectItem itemLabel="Normal" itemValue="Normal" />
+			<f:selectItem itemLabel="Small" itemValue="Small" />
+			<f:selectItem itemLabel="Tiny" itemValue="Tiny" />
+		</h:selectOneMenu>
+
+		<h:outputText value="mapStyle"></h:outputText>
+		<h:selectOneMenu value="#{virtualEarth.mapStyle}" onchange="submit();">
+			<f:selectItem itemLabel="Birdseye" itemValue="Birdseye" />
+			<f:selectItem itemLabel="Hybrid" itemValue="Hybrid" />
+			<f:selectItem itemLabel="Aerial" itemValue="Aerial" />
+			<f:selectItem itemLabel="Road" itemValue="Road" />
+		</h:selectOneMenu>
+
+		<h:outputText value="rendered:"></h:outputText>
+		<h:selectBooleanCheckbox value="#{virtualEarth.rendered}" onchange="submit();"></h:selectBooleanCheckbox>
+	</h:panelGrid>
+	<h:panelGroup>
+		<f:verbatim>
 		Dashboard:<br />
-					<a href="javascript:void(0);" onclick="map.HideDashboard();return false;">Remove</a>
-					<a href="javascript:void(0);" onclick="map.ShowDashboard();return false;">Show</a>
-					<br />
-					<br />
+			<a href="javascript:void(0);" onclick="map.HideDashboard();return false;">Remove</a>
+			<a href="javascript:void(0);" onclick="map.ShowDashboard();return false;">Show</a>
+			<br />
+			<br />
 		Type:<br />
-					<a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
-					<a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Aerial);return false;">Aerial</a>
-					<a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Hybrid);return false;">Hybrid</a>
-					<a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Birdseye);return false;">Birdseye</a>
-					<br />
-					<br />
+			<a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
+			<a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Aerial);return false;">Aerial</a>
+			<a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Hybrid);return false;">Hybrid</a>
+			<a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Birdseye);return false;">Birdseye</a>
+			<br />
+			<br />
 		Zoom:<br />
-					<a href="javascript:void(0);" onclick="map.ZoomIn();return false;">In</a>
-					<a href="javascript:void(0);" onclick="map.ZoomOut();return false;">Out</a>
-					<br />
-					<br />
-					<a href="javascript:void(0);" onclick="showExadel();return false;">Show Exadel Office</a>
-					<br />
-					<a href="javascript:void(0);" onclick="showExadelInMinsk();return false;">Show Exadel in Belarus</a>
-				</f:verbatim>
-			</h:panelGroup>
+			<a href="javascript:void(0);" onclick="map.ZoomIn();return false;">In</a>
+			<a href="javascript:void(0);" onclick="map.ZoomOut();return false;">Out</a>
+			<br />
+			<br />
+			<a href="javascript:void(0);" onclick="showExadel();return false;">Show Exadel Office</a>
+			<br />
+			<a href="javascript:void(0);" onclick="showExadelInMinsk();return false;">Show Exadel in Belarus</a>
+		</f:verbatim>
+	</h:panelGroup>
 </f:subview>
\ No newline at end of file




More information about the richfaces-svn-commits mailing list