Locale

Change the locale of the datepicker, schedule and client side validation messages.

Input Style

Free Themes

Built-in component themes created by the PrimeFaces Theme Designer.

PrimeOne Design

Saga Saga
Vela Vela
Arya Arya

Premium Themes

Premium themes are only available exclusively for PrimeFaces Theme Designer subscribers and therefore not included in PrimeFaces core.

Bootstrap light blue and dark blue themes are also included in PrimeFaces 10.x builds for Elite subscribers.

bootstrap4-blue-light Bootstrap Blue
bootstrap4-purple-light Bootstrap Purple
bootstrap4-blue-dark Bootstrap Blue
bootstrap4-purple-dark Bootstrap Purple

Legacy Free Themes

Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink
Nova Nova
Nova Nova Alt
Nova Nova Accent

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.

GMap Geocode

Geocoding support is provided with geocode and reverseGeocode ajax behavior events.

Geocode
Reverse Geocode

<script src="https://maps.google.com/maps/api/js?sensor=false"></script>
<script>
    function geocode() {
        PF('geoMap').geocode(document.getElementById('address').value);
    }

    function reverseGeocode() {
        var lat = document.getElementById('lat').value,
            lng = document.getElementById('lng').value;

        PF('revGeoMap').reverseGeocode(lat, lng);
    }
</script>


<h:form prependId="false">

    <div class="card">
        <h5 style="margin-top:0">Geocode</h5>
        <h:panelGrid columns="3" style="margin-bottom:10px" cellpadding="5">
            <p:outputLabel for="address" value="Address:"/>
            <p:inputText id="address"/>
            <p:commandButton value="Geocode" icon="pi pi-search" onclick="geocode()" type="button"/>
        </h:panelGrid>

        <p:gmap id="geoGmap" widgetVar="geoMap" center="#{geocodeView.centerGeoMap}" zoom="2" type="ROADMAP"
                model="#{geocodeView.geoModel}" style="width:100%;height:400px">
            <p:ajax event="geocode" listener="#{geocodeView.onGeocode}" update="@this"/>
        </p:gmap>
    </div>

    <div class="card">
        <h5>Reverse Geocode</h5>
        <h:panelGrid columns="5" style="margin-bottom:10px" cellpadding="5">
            <p:outputLabel for="lat" value="Lat:"/>
            <p:inputText id="lat"/>
            <p:outputLabel for="lng" value="Lng:"/>
            <p:inputText id="lng"/>
            <p:commandButton value="Reverse Geocode" icon="pi pi-search" onclick="reverseGeocode()"
                             type="button"/>
        </h:panelGrid>

        <p:gmap id="revGeoGmap" widgetVar="revGeoMap" center="#{geocodeView.centerRevGeoMap}" zoom="2"
                type="ROADMAP" model="#{geocodeView.revGeoModel}" style="width:100%;height:400px">
            <p:ajax event="reverseGeocode" listener="#{geocodeView.onReverseGeocode}" update="@this"/>
        </p:gmap>
    </div>

</h:form>

Session expired

Reloading page

Message:
StackTrace: