Uncaught TypeError: Object #<a Document#> has no method 'write'
Hazems.IBMEG 2700027XCV Visits (2488)
This issue happens when you use GMaps4JSF with Google Chrome (also Safari) in Facelets XHTML files (The default PDL for JSF 2.0). Actually this issue generally happens when you make make any include to Google Maps inside XHTML files:
Just set the content type to "text/html":