1

I have deployed my application on the Tomcat Server and find that map is displayed only ones for active session. If I open new tab in chrome and paste the same url like for active session in the previous tab - google map is not displayed in the new tab. Also if I close browser and session is live I have the same result - map can't be displayed. What I must to do to fix this problem?

Map is displayed by next code

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

Example enter image description here

Andrey
  • 158
  • 2
  • 11
  • on the local machine i found this mistake from the server Jun 10, 2016 3:51:36 PM com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource WARNING: JSF1064: Unable to find or serve resource, undefined/undefined.js, from library, primefaces. Wha can it be wit primefaces? I use primefaces 5.3 – Andrey Jun 10 '16 at 13:03
  • I have found that there is no problem when i remove binding="#{mapBean.gMap}". But i need link to map object in my bean. Why such problem is presernt in binding? – Andrey Jun 11 '16 at 07:15
  • See [mcve] and http://www.stackoverflow.com/tags/jsf/info and also search stackoverflow about binding problems – Kukeltje Jun 11 '16 at 09:25
  • I have found answer here http://stackoverflow.com/questions/13378153/binding-of-pgmap-component-doesnt-work-primefaces-3-4-1 by adding – Andrey Jun 12 '16 at 14:36

1 Answers1

1

I have found answer here binding of <p:gmap component doesn't work - Primefaces 3.4.1 Problem was solved by adding <h:outputScript library="primefaces" name="gmap/gmap.js" />

Community
  • 1
  • 1
Andrey
  • 158
  • 2
  • 11