Input Style

Free Themes

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

Saga Saga
Vela Vela
Arya Arya

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 Draggable Markers

When a draggable marker is dragged and dropped, a server side markerDragListener can be invoked passing a MarkerDragEvent that contains a reference to the dragged marker whose positon is updated already.


<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>

<div class="card">
    <h:form prependId="false">
        <p:growl id="growl" showDetail="true"/>

        <p:gmap id="gmap" center="36.890257,30.707417" zoom="13" type="HYBRID"
                model="#{draggableMarkersView.draggableModel}" style="width:100%;height:400px">
            <p:ajax event="markerDrag" listener="#{draggableMarkersView.onMarkerDrag}" update="growl"/>
        </p:gmap>
    </h:form>
</div>