I'm using the p:gmap component in an application, but when I try to use the binding attribute to reference a GMap in a bean, it doesn't work and the map is not showed.
JSF code:
<p:gmap binding="#{mapBean.map}" center=" -26.9995, -49.686" zoom="11" type="ROADMAP" />
Backing bean code:
public GMap getMap() {
map = new GMap();
map.setCenter("-26.9995, -49.686");
map.setZoom(11);
map.setType("ROADMAP");
map.setModel(geoModel);
map.setStyle("width:850px;height:450px");
map.setWidgetVar("vMap");
return map;
}
When I used this component without binding, and it worked normally...
Primefaces version 3.4.1; Glassfish 3.1.2.2
Any idea?
Thanks