PickList

PickList is a dual list input component featuring Drag and Drop based reordering, transition effects, pojo support, theme support and more.

Basic PickList

  • Istanbul
  • Ankara
  • Izmir
  • Antalya
  • Bursa

    Pojo Support with Bounce Effect, Captions, Custom Content and Reorder Controls

    Available
    • Messi
    • Iniesta
    • Villa
    • Alves
    • Xavi
    • Puyol
    Starting
      Source: IstanbulAnkaraIzmirAntalyaBursa
      Target:
      Source: MessiIniestaVillaAlvesXaviPuyol
      Target:

      Source

      <h:form id="form">
      
          <h3>Basic PickList</h3>
      
          <p:pickList id="pickList" value="#{pickListBean.cities}"
                      var="city"
                      itemLabel="#{city}"
                      itemValue="#{city}" />
      
          <p:commandButton id="citySubmit" value="Submit" update="displayCities" oncomplete="cityDialog.show()"/>
      
          <h3>Pojo Support with Bounce Effect, Captions, Custom Content and Reorder Controls</h3>
          <p:pickList id="pojoPickList"  value="#{pickListBean.players}"
                          var="player" iconOnly="true" effect="bounce"
                          itemValue="#{player}" converter="player"
                          showSourceControls="true" showTargetControls="true">
              <f:facet name="sourceCaption">Available</f:facet>
              <f:facet name="targetCaption">Starting</f:facet>
      
              <p:column style="width:25%">
                  <p:graphicImage value="/images/barca/#{player.photo}" width="30" height="40" />
              </p:column>
      
               <p:column style="width:75%";>
                  #{player.name} - #{player.number}
              </p:column>
          </p:pickList>
      
          <p:commandButton id="pojoSubmit" value="Submit" update="displayPlayers" oncomplete="playerDialog.show()"/>
      
          <p:dialog modal="true" showEffect="fade" hideEffect="fade" widgetVar="cityDialog">
              <h:panelGrid id="displayCities" columns="2">
                  <h:outputText value="Source: " style="font-weight:bold"/>
                   <ui:repeat value="#{pickListBean.cities.source}" var="item">
                      <h:outputText value="#{item}" style="margin-right:5px" />
                  </ui:repeat>
      
                  <h:outputText value="Target: " style="font-weight:bold"/>
                  <ui:repeat value="#{pickListBean.cities.target}" var="item">
                      <h:outputText value="#{item}" style="margin-right:5px" />
                  </ui:repeat>
              </h:panelGrid>
          </p:dialog>
      
          <p:dialog modal="true" showEffect="fade" hideEffect="fade" widgetVar="playerDialog">
              <h:panelGrid id="displayPlayers" columns="2">
                  <h:outputText value="Source: " style="font-weight:bold"/>
                  <ui:repeat value="#{pickListBean.players.source}" var="player">
                      <h:outputText value="#{player.name}" style="margin-right:5px" />
                  </ui:repeat>
      
                  <h:outputText value="Target: " style="font-weight:bold"/>
                  <ui:repeat value="#{pickListBean.players.target}" var="player">
                      <h:outputText value="#{player.name}" style="margin-right:5px" />
                  </ui:repeat>
              </h:panelGrid>
          </p:dialog>
      
      </h:form>