Author: nbelaevski
Date: 2008-09-08 09:52:35 -0400 (Mon, 08 Sep 2008)
New Revision: 10350
Modified:
branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-4374
Modified:
branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml
===================================================================
---
branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml 2008-09-08
13:35:22 UTC (rev 10349)
+++
branches/3.2.x/samples/richfaces-demo/src/main/webapp/richfaces/gmap/examples/mapUsage.xhtml 2008-09-08
13:52:35 UTC (rev 10350)
@@ -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