title: how to prepopulate h:inputText in jsf
body: <p>i have two inputtext which i want to prepopulate with geolocation data that is city and country.
  This is api i want to use to get location</p>
  
  <pre><code>      &lt;script language="JavaScript" src="http://www.geoplugin.net/javascript.gp" type="text/javascript"&gt;&lt;/script&gt;
  
    &lt;script language="Javascript"&gt; 
      document.write(geoplugin_city(), geoplugin_countryName()); 
    &lt;/script&gt;
  </code></pre>
  
  <p>JSF:</p>
  
  <pre><code>&lt;h:inputText id="city" style="width:100%;"  value="#{m.city}"&gt;&lt;/h:inputText&gt;
  
  &lt;h:inputText id="city" style="width:100%;"  value="#{m.country}"&gt;&lt;/h:inputText&gt;
  </code></pre>