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


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

Timeline DragDrop

Drag events from the list on the left side and drop them onto the timeline.

  • Event 1
  • Event 2
  • Event 3
  • Event 4
  • Event 5
  • Event 6
  • Event 7
  • Event 8
  • Event 9
  • Event 10

<style type="text/css">
    .ui-datalist-item .ui-draggable:hover {
        background: var(--surface-c);
    .ui-datalist-data {
        margin: 0;
        padding: 0;
        list-style: none;

    .ui-datalist-item {
        margin-bottom: .5rem;
        width: 100%;

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

        <div style="float: left; width: 130px;">
            <p:dataList id="eventsList" value="#{}" var="event" itemType="circle">
                <p:outputPanel id="eventBox" style="z-index:9999; cursor:move;" styleClass="p-p-2">

                <p:draggable for="eventBox" revert="true" helper="clone" cursor="move"/>

        <p:timeline id="timeline" value="#{dndTimelineView.model}" var="event" editable="true" eventMargin="10"
            eventMarginAxis="0" minHeight="400" start="#{dndTimelineView.start}" end="#{dndTimelineView.end}"
            style="margin-left:135px;" dropActiveStyleClass="ui-state-highlight"
            <p:ajax event="drop" listener="#{dndTimelineView.onDrop}" global="false" update="eventsList" />

            <h:panelGrid columns="1">
                <h:outputText value="#{}" />
                <h:outputText value="#{event.start}">
                    <f:convertDateTime type="localDateTime" pattern="hh:mm:ss a" />
                <h:outputText value="#{event.end}">
                    <f:convertDateTime type="localDateTime" pattern="hh:mm:ss a" />