arya-blue
luna-amber
luna-blue
luna-green
luna-pink
nova-dark
nova-light
saga-blue
vela-blue
InputPlace
Link the InputPlace to a Google Map implementaton to control the map. DO NOT FORGET TO INCLUDE <script> with your Google API Key.
Source

                    <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCvCDkYieuUBmMWon_mfLAfjuaeuosuqow&amp;libraries=places" />

    <script>
        function updateMap(place) {
            const map = PF('googleMap').getMap();
            if (!map || !place.geometry) {
                return;
            }

            // drop a pin
            const marker = new google.maps.Marker({
                map,
                position: place.geometry.location,
            });

            // If the place has a geometry, then present it on a map.
            map.panTo(place.geometry.location);
            map.setZoom(17);
        }
    </script>

    <p:growl id="growl" showDetail="true" showSummary="true" globalOnly="false">
        <p:autoUpdate/>
    </p:growl>

    <div jsf:id="inputGroup" class="field grid">
        <div class="col-12">
            <div class="ui-inputgroup mb-4">
                <div class="ui-inputgroup-addon"><i class="fa-solid fa-location-dot"></i></div>
                <pe:inputPlace widgetVar="place" placeholder="Enter a location" styleClass="w-full" onplacechanged="updateMap(place)" />
            </div>
        </div>
        <div class="col-12">
            <p:gmap widgetVar="googleMap" center="41.381542, 2.122893" zoom="15" type="ROADMAP" style="width:100%;height:400px" />
        </div>
    </div>
                
Components and more
Documentation pe:
Attributes (move mouse over the names to see data types)
Name Description
No attributes available for this component.
PrimeFaces Extensions Showcase - © 2011-2025,PrimeFaces: 15.0.13,PrimeFaces Extensions: 15.0.14-SNAPSHOT,JSF: Apache MyFaces JSF-2.3 Core Impl 2.3.10,Server: Apache Tomcat (TomEE)/9.0.82 (8.0.16),Build time: 2026-02-23 00:32