Author: dmorozov
Date: 2008-09-08 09:35:22 -0400 (Mon, 08 Sep 2008)
New Revision: 10349
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-4374
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml 2008-09-08
13:16:01 UTC (rev 10348)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml 2008-09-08
13:35:22 UTC (rev 10349)
@@ -10,11 +10,17 @@
.optionList {
height:30px;
}
- </style>
+ </style>
<h:panelGrid columns="2">
<rich:gmap gmapVar="map" zoom="#{gmBean.zoom}"
style="width:400px;height:400px" gmapKey="#{gmBean.gmapkey}"
id="gmap"/>
<h:panelGroup>
+ <h:form>
+ <a4j:jsFunction name="showPlace"
data="#{gmBean.currentPlace}" reRender=":zoom"
+ oncomplete="map.setCenter(new GLatLng(data.lat, data.lng),data.zoom)">
+ <a4j:actionparam name="id"
assignTo="#{gmBean.currentId}"></a4j:actionparam>
+ </a4j:jsFunction>
+
<rich:tabPanel switchType="ajax" width="350"
height="400">
<rich:tab label="Using Google Map API">
<h:panelGrid columns="2" columnClasses="optionList">
@@ -48,14 +54,7 @@
</rich:tabPanel>
+ </h:form>
</h:panelGroup>
- </h:panelGrid>
- <h:form>
- <a4j:jsFunction name="showPlace" data="#{gmBean.currentPlace}"
reRender=":zoom"
- oncomplete="map.setCenter(new GLatLng(data.lat, data.lng),data.zoom)">
- <a4j:actionparam name="id"
assignTo="#{gmBean.currentId}"></a4j:actionparam>
- </a4j:jsFunction>
- </h:form>
-
-
+ </h:panelGrid>
</ui:composition>
\ No newline at end of file