i did not visualize component map draggable

UI Components for JSF
Post Reply
pinguinogil
Posts: 3
Joined: 20 Oct 2010, 13:01

20 Oct 2010, 13:06

I have been doing tests with the components of googlemap and do not visualize the map in any of them. Because it can be?.
I have proved other components and they me work perfectly.
thank you

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

20 Oct 2010, 14:17

Hi,

Have you included gmap script to your page, see user's guide GMap doc.

pinguinogil
Posts: 3
Joined: 20 Oct 2010, 13:01

20 Oct 2010, 16:22

Thanks for the rapid response
I am new with primefaces, and perhaps I have not understood the documentation. I have done this example.

<?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">
<f:view xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.prime.com.tr/ui">
<html xmlns="http://www.w3.org/1999/xhtml">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Prueba MapBeanDraggable</title>
</h:head>
<h:form>
<p:growl id="growl" showDetail="true"/>
<p:panel header="Prueba Draggable GoogleMaps">
<p:gmap center="36.890257,30.707417" zoom="13" type="HYBRID"
style="width:600px;height:400px"
model="#{mapBeanDraggable.draggableModel}"
markerDragListener="#{mapBeanDraggable.onMarkerDrag}"
onMarkerDragUpdate="growl" />
</p:panel>
</h:form>
</html>
</f:view>

Where I put the script of google? an example, please?

pinguinogil
Posts: 3
Joined: 20 Oct 2010, 13:01

20 Oct 2010, 17:03

I already have it solved. thank you very much. the correct script was absent.
Now I have the problem of which I see the locations to move.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 54 guests