binding of <p:gmap component doesn't work - Primefaces 3.4.1
问题 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");