Input Style

Free Themes

Built-in component themes created by the PrimeFaces Theme Designer.

Saga Saga
Vela Vela
Arya Arya

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


Create awesome applications in no time using the premium templates and impress your users.


Collector is an utility to manage collections easily.

Create a new book
No records found.

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

        <p:panel header="Create a new book" style="margin-bottom:20px">
            <h:panelGrid columns="2" cellpadding="5">
                <h:outputLabel value="Title : *" for="txt_title"></h:outputLabel>
                <p:inputText id="txt_title" value="#{}" required="true"/>

                <h:outputLabel value="Author : *" for="txt_author"></h:outputLabel>
                <p:inputText id="txt_author" value="#{}" required="true"/>

                <p:commandButton id="btn_reset" value="Reset" type="reset"/>
                <p:commandButton id="btn_add" value="Add" update="books msgs @parent"
                    <p:collector value="#{}" addTo="#{collectorView.books}" unique="true"/>

        <p:outputPanel id="books">
            <p:dataTable value="#{collectorView.books}" var="book" id="booksTable">

                <p:column headerText="Title">
                    <h:outputText value="#{book.title}"/>

                <p:column headerText="Author">
                    <f:facet name="header">
                        <h:outputText value="Author"/>
                    <h:outputText value="#{}"/>

                <p:column headerText="Action">
                    <p:commandLink value="Remove" update=":form:books" process=":form:books">
                        <p:collector value="#{book}" removeFrom="#{collectorView.books}" unique="true"/>