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.

LightBox

LightBox is a modal overlay component to display images, inline content and iframes.

Images
Inline
Video Content

<style type="text/css">
    .imagebox a {
        margin-left: 10px;
    }
</style>


<div class="card">
    <h5 style="margin-top: 0">Images</h5>
    <p:lightBox styleClass="imagebox" id="lighbox1">
        <h:outputLink value="../../resources/demo/images/nature/nature1.jpg" title="Nature 1">
            <p:graphicImage name="/demo/images/nature/nature1.jpg" id="nature1" styleClass="p-shadow-4"
                            style="height: 12.5rem; width: 20rem"/>
        </h:outputLink>

        <h:outputLink value="../../resources/demo/images/nature/nature2.jpg" title="Nature 2">
            <p:graphicImage name="/demo/images/nature/nature2.jpg" id="nature2" styleClass="p-shadow-4"
                            style="height: 12.5rem; width: 20rem"/>
        </h:outputLink>

        <h:outputLink value="../../resources/demo/images/nature/nature3.jpg" title="Nature 3">
            <p:graphicImage name="/demo/images/nature/nature3.jpg" id="nature3" styleClass="p-shadow-4"
                            style="height: 12.5rem; width: 20rem"/>
        </h:outputLink>

        <h:outputLink value="../../resources/demo/images/nature/nature4.jpg" title="Nature 4">
            <p:graphicImage name="/demo/images/nature/nature4.jpg" id="nature4" styleClass="p-shadow-4"
                            style="height: 12.5rem; width: 20rem"/>
        </h:outputLink>
    </p:lightBox>
</div>

<div class="card">
    <h5>Inline</h5>
    <p:lightBox id="lighbox2">
        <p:link value="Video Content"/>

        <f:facet name="inline">
            <p:video value="https://www.w3schools.com/html/mov_bbb.mp4"
                     player="mp4"
                     controls="true"
                     width="420"
                     height="250">
                Your browser does not support the video element.
                See: <h:outputLink value="https://www.w3schools.com/html/html5_video.asp">HTML5 Video</h:outputLink>
            </p:video>
        </f:facet>
    </p:lightBox>
</div>

<div class="card">
    <h5>IFrame</h5>
    <p:lightBox iframe="true" id="lighbox3">
        <p:link value="PrimeFaces HomePage" target="http://www.primefaces.org" title="PrimeFaces HomePage"/>
    </p:lightBox>
</div>