Google map不使用primefaces处理java(JSF)应用程序?
google地图未使用java应用程序显示。。这是我的密码。。 我正在使用xmlns:p=”http://primefaces.org/ui“显示谷歌地图的我的代码如下Google map不使用primefaces处理java(JSF)应用程序?,java,google-maps,jsf,primefaces,Java,Google Maps,Jsf,Primefaces,google地图未使用java应用程序显示。。这是我的密码。。 我正在使用xmlns:p=”http://primefaces.org/ui“显示谷歌地图的我的代码如下 < p:gmap id="gMapClinics" center="36.890257,30.707417" zoom="2" type="terrain" model="#{searchController.advancedModel}" style="width:100%;height:600px; margin-
< p:gmap id="gMapClinics" center="36.890257,30.707417" zoom="2" type="terrain" model="#{searchController.advancedModel}" style="width:100%;height:600px; margin-top: 60px;"><p:ajax event="overlaySelect" listener="#{searchController.onMarkerSelect}" />
< p:gmapInfoWindow id="infoWindow" >
< p:outputPanel style="text-align: center; display: block; margin: auto" >
< p:graphicImage name="/images/islamabad.png" height="150" />
< br />
< h:outputText value="#{searchController.marker.title}" />
< /p:outputPanel>
< /p:gmapInfoWindow>
< /p:gmap>
您已经在嵌套组件之前终止了
,并且没有终止下面的
标记
像这样修复它:
<p:gmap id="gMapClinics" center="36.890257,30.707417"
zoom="2" type="terrain" model="#{searchController.advancedModel}"
style="width:100%;height:600px; margin-top: 60px;">
<p:ajax event="overlaySelect" listener="#{searchController.onMarkerSelect}" />
<p:gmapInfoWindow id="infoWindow" >
<p:outputPanel style="text-align: center; display: block; margin: auto" >
<p:graphicImage name="/images/islamabad.png" height="150" />
<br />
<h:outputText value="#{searchController.marker.title}" />
</p:outputPanel>
</p:gmapInfoWindow>
</p:gmap>
请格式化您的代码。请阅读