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

PREMIUM TEMPLATES

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

OrderList

OrderList is used to sort a collection via Drag and Drop based reordering, transition effects, pojo support, country support and more.

Basic
  • San Francisco
  • London
  • Paris
  • Istanbul
  • Berlin
  • Barcelona
  • Rome
Advanced
Available
  • Andorra
  • United Arab Emirates
  • Afghanistan
  • Antigua and Barbuda
  • Anguilla
  • Albania
  • Armenia
  • Netherlands Antilles
  • Angola
  • Antarctica

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

    <div class="card">
        <h5>Basic</h5>
        <p:orderList value="#{orderListView.cities}" var="city" controlsLocation="none" itemLabel="#{city}" itemValue="#{city}" />
    </div>

    <div class="card">
        <h5>Advanced</h5>
        <p:orderList value="#{orderListView.countries}" var="country" itemValue="#{country}"
                     converter="#{countryConverter}" controlsLocation="left" responsive="true">
            <p:ajax event="select" listener="#{orderListView.onSelect}" update="msgs"/>
            <p:ajax event="unselect" listener="#{orderListView.onUnselect}" update="msgs"/>
            <p:ajax event="reorder" listener="#{orderListView.onReorder}" update="msgs"/>

            <f:facet name="caption">Available</f:facet>

            <p:column style="width:40px">
                <span class="flag flag-#{country.code}" style="width: 30px; height: 20px"/>
            </p:column>

            <p:column>
                <h:outputText value="#{country.name}"/>
            </p:column>
        </p:orderList>
    </div>

</h:form>