Jsf primefaces引用错误:未定义google

Jsf primefaces引用错误:未定义google,jsf,primefaces,primefaces-gmap,Jsf,Primefaces,Primefaces Gmap,我想在我的应用程序中使用谷歌地图,但我有一个问题,我无法加载它,我使用的是primefaces,我不知道问题出在哪里 <!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="ht

我想在我的应用程序中使用谷歌地图,但我有一个问题,我无法加载它,我使用的是primefaces,我不知道问题出在哪里

<!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:p="http://primefaces.org/ui">
<h:head>

    <title>Home</title>
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>

</h:head>
<h:body>

    <ui:composition template="../template/template_.xhtml">

        <ui:define name="content">

<p:gmap center="41.381542, 2.122893" zoom="15" type="HYBRID" style="width:600px;height:400px" />


        </ui:define>

    </ui:composition>
    <h:outputStylesheet library="css" name="primefaces-override.css"/>
</h:body>
</html

这就是我得到的:ReferenceError:google没有定义

{PrimeFaces.cw('GMap','widget_mainForm_j_idt45',{id:'mainForm:j_idt45',mapTypeId:**google**.maps.MapTypeId.HYBRID,center:new **google**.maps.LatLng(41.381542, 2.122893),zoom:15,fitBounds:false});});</script>
{PrimeFaces.cw('GMap','widget_mainForm_j_idt45',{id:'mainForm:j_idt45',mapTypeId:*google**.maps.mapTypeId.HYBRID,center:new**google**.maps.LatLng(41.381542,2.122893),zoom:15,fitBounds:false});

使用合成时,必须添加js脚本:

<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>


到模板.xhtml文件。

使用合成时,必须添加js脚本:

<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>


到模板.xhtml文件。

使用合成时,必须添加js脚本:

<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>


到模板.xhtml文件。

使用合成时,必须添加js脚本:

<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>

到模板.xhtml文件