Google maps JSF中模糊事件后如何刷新组件

Google maps JSF中模糊事件后如何刷新组件,google-maps,jsf,jsf-2,gmaps4jsf,Google Maps,Jsf,Jsf 2,Gmaps4jsf,我正在使用gmaps4jsf在我的应用程序中显示谷歌地图,但我想在用户键入他/她的等级、城市、州和国家后更新地图。这样,我可以动态地为gmaps4jsf提供更准确的信息 但每次我填满一些字段,地图都不见了。例如,我正在使用状态: State:<h:message id="m_state" for="state" styleClass="red" /><br/> <h:selectOneMenu id="state" value="#{propertyC.proper

我正在使用
gmaps4jsf
在我的应用程序中显示谷歌地图,但我想在用户键入他/她的等级、城市、州和国家后更新地图。这样,我可以动态地为
gmaps4jsf
提供更准确的信息

但每次我填满一些字段,地图都不见了。例如,我正在使用
状态

State:<h:message id="m_state" for="state" styleClass="red" /><br/>
<h:selectOneMenu id="state" value="#{propertyC.property.addressState.state}">
    <f:selectItem itemLabel="" itemValue=""  />
    <f:selectItems value="#{addressB.states('US')}" var="state" itemValue="#{state.key}" itemLabel="#{state.value}" />
    <f:ajax event="blur" render="m_state map" />
</h:selectOneMenu>
<br/>

 // others fields    

<m:map id="map" width="425px" height="250px" address="#{propertyC.property.street}, #{propertyC.property.addressCity.city}, #{propertyC.property.addressState.state}, #{propertyC.property.addressCountry.country}, #{propertyC.property.cep}" zoom="25" autoReshape="true" >
    <m:marker>
        <m:icon imageURL="http://i.imgur.com/WFJo62Q.png"/>
    </m:marker>
</m:map>
状态:

//其他领域

如何在用户键入其地址时动态显示地图?

尝试设置以下属性:
partiallyTriggered=“true”

这将允许部分渲染,特别是在使用ajaxfied数据提交的情况下。

是的,为了使用Ajax动态更改地图内容,需要将partiallyTriggered属性设置为true

查看使用GMaps4JSF 3.0.0的JSF Mashup混音演示,了解如何使用Ajax更新地图内容:

这也是演示源代码:

您使用的是哪个版本的GMaps4JSF?@AlexandreLavoie,最后一个版本,第3版。我昨天试过了您的例子,同样的问题,今晚我将在1.1.4上尝试我的旧项目,很快回来!好的,亚历山大,谢谢你@AlexandreLavoie,有关于这个主题的最新消息吗?