开发者

problem with primerfaces gmap tag

I tried to use a simple gmap example to start to developt a webapp, but it doesn´t work for me.

I used the example prime movie-collector that I found on the web page. I only included this code <p:gmap center="41.381542, 2.122893" zoom="15" type="HYBRID" style="width:600px;height:400px" /> in template.html file.

I got this error:

javax.servlet.ServletException: /template.xhtml @39,39 <p:gmap> Tag Library supports namespace: http://primefaces.prime.com.tr/ui, but no tag was defined 开发者_运维百科for name: gmap
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)

I think that I haven´t wrong libraries.

Another day, I tried to create my own example using a simple map, but I obtained the same output.

Thanks!


Download the latest PrimeFaces jar. http://www.primefaces.org/downloads.html

The following must be in the head section:

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

<p:gmap> must be inside <f:view contentType="text/html"></f:view> for it to render in Chrome/Safari.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜