0
votes

As I am using Primefaces and JSF and use the Gmap component, I need to put in the head of the page something like this:

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

The problem is that, doing so, I obtain an error as "&sensor" is interpreted as an XML entity. Any help welcome.

2
Have you tried replacing the & for &amp; ? - Diogo Moreira
In future, please search around based on the exact error message instead of an observation. Using the exact error message as search keyword gives the best results. - BalusC

2 Answers

0
votes

Try this:

<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?v=3&amp;sensor=false">
</script>
0
votes

I think you don't need to type v=3 anymore. I'm using:

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