Google maps Primefaces GMap不使用h:form渲染

Google maps Primefaces GMap不使用h:form渲染,google-maps,jsf-2.2,primefaces-gmap,Google Maps,Jsf 2.2,Primefaces Gmap,Primefaces GMap包含在h:form标记中时不渲染 <h:form> <p:gmap id="map" center="30.3753, 69.3451" zoom="6" type="map" model="#{branchBean.map}"></p:gmap> </h:form> 移除封闭的h:form标记时,将显示地图 使用primefaces版本是6.1我使用id而不是类名引用了gmap的css,将它从#map更

Primefaces GMap包含在h:form标记中时不渲染

<h:form>

  <p:gmap id="map" center="30.3753, 69.3451" zoom="6" type="map" model="#{branchBean.map}"></p:gmap>

</h:form>

移除封闭的h:form标记时,将显示地图


使用primefaces版本是6.1

我使用id而不是类名引用了gmap的css,将它从#map更改为.mapStyle,并在gmap的styleClass属性中设置它。现在它工作得很好