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.

Timeline Two Linked Timelines

When moving one timeline, the other moves along. Use mouse scroll wheel for zoom-in and zoom-out. A click on an event in the first timeline selects an event in the second timeline (Project A or Project B).

Events
Projects

<script type="text/javascript">
    //<![CDATA[
    function onrangechange1() {
        var second = PF('timelineSecondWdgt');
        if (second.jq.data("rangeFired")) {
            second.jq.data("rangeFired", null);
            return;
        }
        var first = PF('timelineFirstWdgt');
        var range = first.getVisibleRange();
        first.jq.data("rangeFired", true);
        PF('timelineSecondWdgt').setVisibleRange(range.start, range.end);
    }

    function onrangechange2() {
        var first = PF('timelineFirstWdgt');
        if (first.jq.data("rangeFired")) {
            first.jq.data("rangeFired", null);
            return;
        }
        var second = PF('timelineSecondWdgt');
        var range = second.getVisibleRange();
        second.jq.data("rangeFired", true);
        PF('timelineFirstWdgt').setVisibleRange(range.start, range.end);
    }

    //]]>
</script>


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

    <div class="card">
        <h5 style="margin-top: 0">Events</h5>
        <p:timeline id="timelineFirst" value="#{linkedTimelinesView.modelFirst}" var="task"
                    height="250px" widgetVar="timelineFirstWdgt">
            <p:ajax event="rangechange" process="@none" onstart="onrangechange1(); return false;"/>
            <p:ajax event="select" listener="#{linkedTimelinesView.onSelect}"/>

            <h:panelGroup layout="block" rendered="#{not task.period}" style="padding-bottom:5px">
                <h:outputText value="#{task.title}"/>
            </h:panelGroup>
            <p:graphicImage library="demo" name="#{task.imagePath}" height="26px"/>
            <h:panelGroup rendered="#{task.period}" style="padding:8px">
                <h:outputText value="#{task.title}"/>
            </h:panelGroup>
        </p:timeline>
    </div>

    <div class="card">
        <h5>Projects</h5>
        <p:timeline id="timelineSecond" value="#{linkedTimelinesView.modelSecond}"
                    height="150px" widgetVar="timelineSecondWdgt">
            <p:ajax event="rangechange" process="@none" onstart="onrangechange2(); return false;"/>
        </p:timeline>
    </div>
</h:form>