DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Muhammad has posted 1 posts at DZone. View Full User Profile

Add a Google map widget in JSF Primefaces

04.19.2013
| 6698 views |
  • submit to reddit
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head>
        <link type="text/css" rel="stylesheet" href="../themes/primefaces-bluesky/theme.css"/>
        <script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script> 
</h:head>
<h:body>
<p:gmap center="31.521118, 74.349375" zoom="15" type="terrain" style="width:600px;height:400px" />
</h:body>
</html>

Add a Google map widget in JSF Primefaces