Bom dia,
Estou fazendo alguns testes com a biblioteca GMaps4JSF, e estou tendo um problema.
Estou fazendo um exemplo que achei na net, mas o meu mapa não esta sendo montado na tela. Já pesquisei aqui no GUJ e na web, mas ate o momento não achei solução.
Alguém já passou por este problema, e possa me ajudar?
Estou usando:
JSF 2.0
GMaps4JSF 3.0
Servidor de Aplicação GlassFish
Segue codigo fonte:
<?xml version='1.0' encoding='UTF-8' ?>
<!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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:m="http://code.google.com/p/gmaps4jsf/">
<h:head>
<title>Facelet Title</title>
<Script tipo = "text/javascript" src = "https://maps.googleapis.com/maps/api/js?sensor=true"/>
</h:head>
<h:body>
<h1 align="center">Exemplos usando Biblioteca GMaps4JSF</h1>
<h:form id="form">
<h:panelGroup id="map">
<m:map width="500px" height="500px" latitude="30.01" longitude="31.14">
<m:marker latitude="30.01" longitude="31.14"/>
<m:htmlInformationWindow latitude="30.01" longitude="31.14" htmlText="Egypt"/>
</m:map>
</h:panelGroup>
</h:form>
</h:body>
</html>
Grato
Adilson Silva