title: Google address autocomplete in JSF .xhtml page - any examples?
body: <p>I am trying to add a text field for address input using google autocomplete on a page in my JSF application and not having much luck.</p>
  
  <p>I have looked at the following examples in StackOverflow:
  <a href="https://stackoverflow.com/questions/7865446/google-maps-places-api-v3-autocomplete-select-first-option-on-enter"></a>
  <a href="https://stackoverflow.com/questions/7865446/google-maps-places-api-v3-autocomplete-select-first-option-on-enter">Google maps Places API V3 autocomplete - select first option on enter</a>
  and <a href="https://stackoverflow.com/questions/13211671/adding-autocomplete-to-google-geocoder">Adding autocomplete to google geocoder</a>
  and the example at <a href="https://google-developers.appspot.com/maps/documentation/javascript/examples/places-autocomplete" rel="nofollow noreferrer">Places autocomplete example</a> to get an idea of what I need to do.</p>
  
  <p>However, all of these examples indicate that I need to include the Google places library by inserting the following:</p>
  
  <pre><code>&lt;script src="https://maps.googleapis.com/maps/api/js?sensor=false&amp;libraries=places"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But when I attempt to add this with my other referencee, I get the following error:</p>
  
  <p><strong>Error Traced[line: 18] The reference to entity "libraries" must end with the ';' delimiter.</strong></p>
  
  <p>So I am dead from the start.  I have another googleapi reference that gives no errors:</p>
  
  <pre><code>&lt;script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>so I am at a loss to understand why I get this error.</p>
  
  <p>I have several other questions about the implementation in thexe examples, but right now, I can't get past adding the reference to the google places library.</p>
  
  <p>First, does anyone know how to add the google api reference without getting the error noted above?</p>
  
  <p>Second, does anyone know where I can find an example that actually adds the address autocomplete functionality to a JSF application using a  or preferably a PrimeFaces  component?</p>
  
  <p>Thanks.</p>