Locale

Change the locale of the datepicker, schedule and client side validation messages.

Language
English
French
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Czech
Greek
Persian
Hindi
Indonesian
Croatian
Japanese
Hungarian
Hebrew
Georgian
Lithuanian
Latvian
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Swedish
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

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.

DataTable Add Row

A new row can be added by clicking the Add new button.

Row Editing with add functionality
CodeNameStatusPrice
bcd94a27
Bamboo Watch
INSTOCK
65.0
0aaf4379
Black Watch
INSTOCK
72.0
1282d5e2
Blue Band
LOWSTOCK
79.0
df93e67b
Blue T-Shirt
INSTOCK
29.0
881eb33f
Bracelet
INSTOCK
15.0
b4908ed9
Brown Purse
OUTOFSTOCK
120.0
ba16a411
Chakra Bracelet
LOWSTOCK
32.0
cb9a65ba
Galaxy Earrings
INSTOCK
34.0
9523ca47
Game Controller
LOWSTOCK
99.0
84dcbc1c
Gaming Set
INSTOCK
299.0
7f7623a1
Gold Phone Case
OUTOFSTOCK
24.0
f3c593a7
Green Earbuds
INSTOCK
89.0
0b106203
Green T-Shirt
INSTOCK
49.0
e2f5f99f
Grey T-Shirt
OUTOFSTOCK
48.0
fe907d1b
Headphones
LOWSTOCK
175.0

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

        <p:dataTable id="products1" widgetVar="products1" var="product" value="#{dtAddRowView.products1}"
                     editable="true">
            <f:facet name="header">
                Row Editing with add functionality
            </f:facet>

            <p:ajax event="rowEdit" listener="#{dtAddRowView.onRowEdit}" update=":form:msgs"/>
            <p:ajax event="rowEditCancel" listener="#{dtAddRowView.onRowCancel}" update=":form:msgs"/>

            <p:column headerText="Code">
                <p:cellEditor>
                    <f:facet name="output"><h:outputText value="#{product.code}"/></f:facet>
                    <f:facet name="input"><p:inputText id="modelInput" value="#{product.code}"
                                                       style="width:100%"/></f:facet>
                </p:cellEditor>
            </p:column>

            <p:column headerText="Name">
                <p:cellEditor>
                    <f:facet name="output"><h:outputText value="#{product.name}"/></f:facet>
                    <f:facet name="input"><p:inputText value="#{product.name}" style="width:100%"
                                                       label="Name"/></f:facet>
                </p:cellEditor>
            </p:column>

            <p:column headerText="Status">
                <p:cellEditor>
                    <f:facet name="output"><h:outputText value="#{product.inventoryStatus}"/></f:facet>
                    <f:facet name="input">
                        <h:selectOneMenu value="#{product.inventoryStatus}" style="width:100%">
                            <f:selectItems value="#{dtEditView.inventoryStatusList}" var="status"
                                           itemLabel="#{status}" itemValue="#{status}"/>
                        </h:selectOneMenu>
                    </f:facet>
                </p:cellEditor>
            </p:column>

            <p:column headerText="Price">
                <p:cellEditor>
                    <f:facet name="output"><h:outputText value="#{product.price}"/></f:facet>
                    <f:facet name="input"><p:inputText value="#{product.price}" style="width:100%"
                                                       label="Price"/></f:facet>
                </p:cellEditor>
            </p:column>


            <p:column style="width:6rem">
                <p:rowEditor/>
            </p:column>
        </p:dataTable>

        <div class="grid mt-3">
            <div class="col-12">
                <p:commandButton value="Add new row" process="@this" update=":form:msgs"
                                 action="#{dtAddRowView.onAddNew()}" oncomplete="PF('products1').addRow();"/>
            </div>
        </div>

    </h:form>
</div>