-
1. Re: rich:gmap inside modalPanel fine in IE7, but quarter-ren
nbelaevski Feb 25, 2009 5:42 AM (in response to cprietom)Hello,
I was experiencing the same issue with rich:virtualEarth. There's a special method there to call if size was changed, I've called it and it worked ok. Don't know whether there's such method in GMap API, you can search... -
2. Re: rich:gmap inside modalPanel fine in IE7, but quarter-ren
cprietom Feb 25, 2009 12:13 PM (in response to cprietom)You got it. Thank you very much nbelaevski. Calling gmap.checkResize() in the onshow event of the modalPanel fixed it.
-
3. Re: rich:gmap inside modalPanel fine in IE7, but quarter-ren
saket80 May 12, 2010 1:52 AM (in response to cprietom)Hi,
rich gmap is not rendering in model panel with Safari, any fix for this? below is my code
<rich:modalPanel id="storeLocationMapOverlay" autosized="true" top="100" onshow="map.checkResize()" >
<div> <h:outputText value="Store Location Map"/></div>
<f:facet name="controls">
<h:graphicImage value="../content/images/closebox.png" onclick="Richfaces.hideModalPanel('storeLocationMapOverlay')"/>
</f:facet>
<h:form id="storeMapForm">
<h:panelGrid id="mapGrid" styleClass="overlayPanel width500">
<rich:gmap gmapVar="map" mapType="G_NORMAL_MAP" enableDragging="true" zoom="2"
style="width: 500px; height: 400px;" showGMapTypeControl="false"
gmapKey="ABQIAAAARGLSjsbAhg4dYB1UWUa5RxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxS_VJNFb4_Hg1PQG5eR_u6y_bKo5w"
oninit="loadMap()">
<script type="text/javascript">
function loadMap(){
var center = new GLatLng('#{storeController.storeBean.gpsX}', '#{storeController.storeBean.gpsY}');
map.setCenter(center, 13);var marker = new GMarker(center, {draggable: true});
GEvent.addListener(marker, "dragstart", function() {
map.closeInfoWindow();
});GEvent.addListener(marker, "dragend", function() {
marker.openInfoWindowHtml("Just bouncing along...");
});map.addOverlay(marker);
}
</script>
</rich:gmap> -
4. Re: rich:gmap inside modalPanel fine in IE7, but quarter-ren
saket80 May 14, 2010 8:32 PM (in response to saket80)Hi,
I did not get any response on my issue. please help
-
5. Re: rich:gmap inside modalPanel fine in IE7, but quarter-ren
saket80 May 17, 2010 6:13 PM (in response to saket80)Hi,
CommandLinks does not work in my application if i add the <f:view contentType="text/html">, none of the link event works if i add view contentType.
Please help
Thanks
-
6. Re: rich:gmap inside modalPanel fine in IE7, but quarter-ren
ilya_shaikovsky May 18, 2010 3:03 AM (in response to saket80)CommandLinks does not work in my application if i add the <f:view contentType="text/html">, none of the link event works if i add view contentType.
do you able to provide war sample for that? It work normally in our test apps.
-
7. Re: rich:gmap inside modalPanel fine in IE7, but quarter-ren
saket80 May 18, 2010 1:07 PM (in response to ilya_shaikovsky)Hi Ilya,
Here is my code with command Links with contentType text/html
<!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">
<body>
<ui:composition>
<f:view contentType="text/html">
<h:form id="sidePanelForm">
<div id="master">
<ul>
<div>
<h:outputLabel value="#{msg.STORE_LAYOUT_STORE_DETAILS}" />
</div>
<li id="li_store">
<div><h:commandLink value="#{msg.STORE_LAYOUT_BASELINE_INFO}" action="#{storeController.toStoreDetailPage}" id="queue_0" /></div>
</li>
<f:subview rendered="#{storeController.hasProgram('APR')}">
<li id="li_apr">
<div><h:commandLink value="#{msg.STORE_LAYOUT_APPLE_APR}" action="#{storeController.toAprStoreProgram}" rendered="#{stateController.storeDetailsFlag}" id="queue_1" /></div>
</li>
</f:subview>
</h:form>
</f:view>
</ui:composition>
</body>
</html>