Locale

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

Language
English
English
English
French
German
German
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Arabic
Bulgarian
Czech
Greek
Persian
Finnish
Danish
Hindi
Indonesian
Croatian
Japanese
Hungarian
Hebrew
Georgian
Central Kurdish
Khmer
Kyrgyz
Kazakh
Lithuanian
Latvian
Malay
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Serbian
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

Input Style

Themes

PrimeOne
Saga Saga
Vela Vela
Arya Arya
Bootstrap
bootstrap4-blue-light Bootstrap Blue
bootstrap4-purple-light Bootstrap Purple
bootstrap4-blue-dark Bootstrap Blue
bootstrap4-purple-dark Bootstrap Purple
Material Design
material-indigo-light Indigo
material-deeppurple-light' Deep Purple
material-indigo-dark Indigo
material-deeppurple-dark' Deep Purple
Material Design Compact
material-indigo-light Indigo
material-deeppurple-light' Deep Purple
material-indigo-dark Indigo
material-deeppurple-dark' Deep Purple

DataTable Column Resize

Columns can be resized in two ways, with a helper or live. Double-click on resizer or press ALT+W to auto-adjust the column width to fit text like Excel.

Basic Resize
CodeNameCategoryQuantity
f230fh0g3Bamboo WatchAccessories24
nvklal433Black WatchAccessories61
zz21cz3c1Blue BandFitness2
244wgerg2Blue T-ShirtClothing25
h456wer53BraceletAccessories73
av2231fwgBrown PurseAccessories0
bib36pfvmChakra BraceletAccessories5
mbvjkgip5Galaxy EarringsAccessories23
vbb124btrGame ControllerElectronics2
cm230f032Gaming SetElectronics63
Live Resize with Callback
CodeNameCategoryQuantity
f230fh0g3Bamboo WatchAccessories24
nvklal433Black WatchAccessories61
zz21cz3c1Blue BandFitness2
244wgerg2Blue T-ShirtClothing25
h456wer53BraceletAccessories73
av2231fwgBrown PurseAccessories0
bib36pfvmChakra BraceletAccessories5
mbvjkgip5Galaxy EarringsAccessories23
vbb124btrGame ControllerElectronics2
cm230f032Gaming SetElectronics63
Expand Mode with Grouping
ProductSale Rate
SalesProfit
Last YearThis YearLast YearThis Year
Bamboo Watch28%78%$80,055.00$63,861.00
Black Watch85%15%$25,568.00$94,394.00
Blue Band90%61%$16,594.00$11,732.00
Blue T-Shirt86%48%$70,877.00$89,313.00
Brown Purse95%67%$90,747.00$78,150.00
Chakra Bracelet9%21%$72,525.00$70,895.00
Galaxy Earrings17%46%$78,264.00$80,336.00
Game Controller94%49%$27,015.00$51,647.00
Gaming Set48%24%$76,572.00$23,512.00
Gold Phone Case32%3%$96,075.00$89,690.00
Totals:$634,292.00$653,530.00

<h:form id="form">
    <p:growl id="msgs" showDetail="true" skipDetailIfEqualsSummary="true"/>

    <div class="card">
        <h5 style="margin-top:0">Basic Resize</h5>
        <p:dataTable id="products1" var="product" value="#{dtResizableColumnsView.products1}"
                     resizableColumns="true" showGridlines="true">

            <p:column headerText="Code">
                <h:outputText value="#{product.code}" />
            </p:column>

            <p:column headerText="Name">
                <h:outputText value="#{product.name}" />
            </p:column>

            <p:column headerText="Category">
                <h:outputText value="#{product.category}" />
            </p:column>

            <p:column headerText="Quantity">
                <h:outputText value="#{product.quantity}" />
            </p:column>

        </p:dataTable>
    </div>

    <div class="card">
        <h5>Live Resize with Callback</h5>
        <p:dataTable id="products2" var="product" value="#{dtResizableColumnsView.products2}"
                     resizableColumns="true" liveResize="true" showGridlines="true">
            <p:ajax event="colResize" update=":form:msgs" listener="#{dtResizableColumnsView.onResize}"/>

            <p:column headerText="Code">
                <h:outputText value="#{product.code}" />
            </p:column>

            <p:column headerText="Name">
                <h:outputText value="#{product.name}" />
            </p:column>

            <p:column headerText="Category">
                <h:outputText value="#{product.category}" />
            </p:column>

            <p:column headerText="Quantity">
                <h:outputText value="#{product.quantity}" />
            </p:column>

        </p:dataTable>
    </div>

    <div class="card">
        <h5>Expand Mode with Grouping</h5>
        <p:dataTable var="sale" value="#{dtGroupView.sales}" resizableColumns="true" resizeMode="expand"
                     showGridlines="true">

            <p:columnGroup type="header">
                <p:row>
                    <p:column rowspan="3" headerText="Product"/>
                    <p:column colspan="4" headerText="Sale Rate"/>
                </p:row>
                <p:row>
                    <p:column colspan="2" headerText="Sales"/>
                    <p:column colspan="2" headerText="Profit"/>
                </p:row>
                <p:row>
                    <p:column headerText="Last Year"/>
                    <p:column headerText="This Year"/>
                    <p:column headerText="Last Year"/>
                    <p:column headerText="This Year"/>
                </p:row>
            </p:columnGroup>

            <p:column>
                <h:outputText value="#{sale.manufacturer}"/>
            </p:column>
            <p:column>
                <h:outputText value="#{sale.lastYearProfit}%"/>
            </p:column>
            <p:column>
                <h:outputText value="#{sale.thisYearProfit}%"/>
            </p:column>
            <p:column>
                <h:outputText value="#{sale.lastYearSale}">
                    <f:convertNumber type="currency" currencySymbol="$"/>
                </h:outputText>
            </p:column>
            <p:column>
                <h:outputText value="#{sale.thisYearSale}">
                    <f:convertNumber type="currency" currencySymbol="$"/>
                </h:outputText>
            </p:column>

            <p:columnGroup type="footer">
                <p:row>
                    <p:column colspan="3" style="text-align:right" footerText="Totals:"/>
                    <p:column>
                        <f:facet name="footer">
                            <h:outputText value="#{dtGroupView.lastYearTotal}">
                                <f:convertNumber type="currency" currencySymbol="$"/>
                            </h:outputText>
                        </f:facet>
                    </p:column>
                    <p:column>
                        <f:facet name="footer">
                            <h:outputText value="#{dtGroupView.thisYearTotal}">
                                <f:convertNumber type="currency" currencySymbol="$"/>
                            </h:outputText>
                        </f:facet>
                    </p:column>
                </p:row>
            </p:columnGroup>
        </p:dataTable>
    </div>
</h:form>