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.

Carousel

Carousel displays data using a slide effect.


<style type="text/css">
    .product-item .product-item-content {
        border: 1px solid var(--surface-d);
        border-radius: 3px;
        margin: .3rem;
        text-align: center;
        padding: 2rem 0;
    }

    .product-item .product-image {
        width: 50%;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)
    }
</style>


<h:form id="form">

    <div class="card">
        <p:carousel value="#{carouselView.products}" var="product" numVisible="3" numScroll="3"
                    responsiveOptions="#{carouselView.responsiveOptions}">
            <f:facet name="header">
                <h5>Basic</h5>
            </f:facet>
            <div class="product-item">
                <div class="product-item-content">
                    <div class="p-mb-3">
                        <p:graphicImage name="demo/images/product/#{product.image}" styleClass="product-image"/>
                    </div>
                    <div>
                        <h4 class="p-mb-1">#{product.name}</h4>
                        <h6 class="p-mt-0 p-mb-3">
                            <h:outputText value="#{product.price}">
                                <f:convertNumber type="currency" pattern="¤#0" currencySymbol="$" />
                            </h:outputText>
                        </h6>
                        <span class="product-badge status-#{product.inventoryStatus.name().toLowerCase()}">#{product.inventoryStatus.text}</span>
                        <div class="p-mt-5">
                            <p:commandButton type="button" icon="pi pi-search" styleClass="rounded-button p-mr-2" />
                            <p:commandButton type="button" icon="pi pi-star" styleClass="ui-button-success rounded-button p-mr-2" />
                            <p:commandButton type="button" icon="pi pi-cog" styleClass="ui-button-help rounded-button" />
                        </div>
                    </div>
                </div>
            </div>
        </p:carousel>
    </div>

    <div class="card">
        <p:carousel value="#{carouselView.products}" var="product" circular="true" autoplayInterval="3000"
                    responsiveOptions="#{carouselView.responsiveOptions}" numVisible="3" numScroll="1">
            <f:facet name="header">
                <h5>Circular, AutoPlay, 3 Items per Page and Scroll by 1</h5>
            </f:facet>

            <div class="product-item">
                <div class="product-item-content">
                    <div class="p-mb-3">
                        <p:graphicImage name="demo/images/product/#{product.image}" styleClass="product-image"/>
                    </div>
                    <div>
                        <h4 class="p-mb-1">#{product.name}</h4>
                        <h6 class="p-mt-0 p-mb-3">
                            <h:outputText value="#{product.price}">
                                <f:convertNumber type="currency" pattern="¤#0" currencySymbol="$" />
                            </h:outputText>
                        </h6>
                        <span class="product-badge status-#{product.inventoryStatus.name().toLowerCase()}">#{product.inventoryStatus.text}</span>
                        <div class="p-mt-5">
                            <p:commandButton type="button" icon="pi pi-search" styleClass="rounded-button p-mr-2" />
                            <p:commandButton type="button" icon="pi pi-star" styleClass="ui-button-success rounded-button p-mr-2" />
                            <p:commandButton type="button" icon="pi pi-cog" styleClass="ui-button-help rounded-button" />
                        </div>
                    </div>
                </div>
            </div>
        </p:carousel>
    </div>

    <div class="card">
        <p:carousel value="#{carouselView.products}" var="product" orientation="vertical"
                    verticalViewPortHeight="352px" style="max-width: 400px;margin-top: 2em;">
            <f:facet name="header">
                <h5>Vertical</h5>
            </f:facet>
            <div class="product-item">
                <div class="product-item-content">
                    <div class="p-mb-3">
                        <p:graphicImage name="demo/images/product/#{product.image}" styleClass="product-image"/>
                    </div>
                    <div>
                        <h4 class="p-mb-1">#{product.name}</h4>
                        <h6 class="p-mt-0 p-mb-3">
                            <h:outputText value="#{product.price}">
                                <f:convertNumber type="currency" pattern="¤#0" currencySymbol="$" />
                            </h:outputText>
                        </h6>
                        <span class="product-badge status-#{product.inventoryStatus.name().toLowerCase()}">#{product.inventoryStatus.text}</span>
                        <div class="p-mt-5">
                            <p:commandButton type="button" icon="pi pi-search" styleClass="rounded-button p-mr-2" />
                            <p:commandButton type="button" icon="pi pi-star" styleClass="ui-button-success rounded-button p-mr-2" />
                            <p:commandButton type="button" icon="pi pi-cog" styleClass="ui-button-help rounded-button" />
                        </div>
                    </div>
                </div>
            </div>
        </p:carousel>
    </div>

    <div class="card">
        <p:carousel circular="true">
            <f:facet name="header">
                <h5>Tabs</h5>
            </f:facet>
            <p:tab>
                <p class="p-m-0 p-p-3">
                    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                    quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum
                    dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                </p>
            </p:tab>
            <p:tab>
                <p class="p-m-0 p-p-3">
                    Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab
                    illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut
                    odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
                </p>
            </p:tab>
            <p:tab>
                <p class="p-m-0 p-p-3">
                    At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores
                    et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
                    Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.
                </p>
            </p:tab>
        </p:carousel>
    </div>
</h:form>

Session expired

Reloading page

Message:
StackTrace: