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

Basic OrderList

  • San Francisco
  • London
  • Paris
  • Istanbul
  • Berlin
  • Barcelona
  • Rome

Pojo Support with Clip Effect, Captions, Custom Content, Reorder Controls, Events and Responsive

Available
  • Afterdark
  • Afternoon
  • Afterwork
  • Aristo
  • Black-Tie
  • Blitzer
Cities
  • San Francisco
  • London
  • Paris
  • Istanbul
  • Berlin
  • Barcelona
  • Rome
Themes
Afterdark
Afternoon
Afterwork
Aristo
Black-Tie
Blitzer
<a:form>
    <a:growl id="msgs" showDetail="true" />
            
    <h3 style="margin-top: 0">Basic OrderList</h3>
    <a:orderList value="#{orderListView.cities}" var="city" controlsLocation="none" itemLabel="#{city}" itemValue="#{city}" />
    <a:commandButton value="Submit" update="displayCities" oncomplete="PF('cityDialog').show()" style="margin-top:5px" />

    <h3>Pojo Support with Clip Effect, Captions, Custom Content, Reorder Controls, Events and Responsive</h3>
    <a:orderList value="#{orderListView.themes}" var="theme" itemValue="#{theme}" converter="theme" controlsLocation="left" responsive="true">
        <a:ajax event="select" listener="#{orderListView.onSelect}" update="msgs"/>
        <a:ajax event="unselect" listener="#{orderListView.onUnselect}" update="msgs"/>
        <a:ajax event="reorder" listener="#{orderListView.onReorder}" update="msgs"/>

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

        <a:column style="width:32px">
            <h:outputText styleClass="ui-theme ui-theme-#{theme.name}" />
        </a:column>

         <a:column>
            <h:outputText value="#{theme.displayName}" />
        </a:column>
    </a:orderList>
    <a:commandButton value="Submit" update="displayThemes" oncomplete="PF('themesDialog').show()" style="margin-top:5px" />

    <a:dialog modal="true" showEffect="fade" hideEffect="fade" widgetVar="cityDialog" header="Cities" width="200">
        <a:dataList id="displayCities" value="#{orderListView.cities}" var="city">
            <h:outputText value="#{city}" />
        </a:dataList>
    </a:dialog>

    <a:dialog modal="true" showEffect="fade" hideEffect="fade" widgetVar="themesDialog" header="Themes" width="200" id="dlgThemes">
        <h:panelGrid id="displayThemes" columns="2">
            <ui:repeat value="#{orderListView.themes}" var="theme">
                <h:outputText value="#{theme.displayName}" style="margin-right:5px" />
            </ui:repeat>
        </h:panelGrid>
    </a:dialog>
</a:form>
                
JARCH, Copyright © 2022 All rights reserved. Running JARCH 24.3.0-SNAPSHOT on PrimeFaces-12.0.0 on Mojarra-2.3.13.