PhotoAlbum Application Download Support Developer Guide
Skins:
Resources/Beans Handling
Ajax Miscellaneous
Usage
Tag Information

Pick List component is a simple selection component where a set of items can be selected from a list that contains all the available items and moved to a list that contains the selected items.

The next example shows the simplest declarative definition on the page.

Example
 Option 1
 Option 2
 Option 3
 Option 4
 Option 5
Copy
Remove
Remove All


View Source

Pick List is a simplified variant of ListShuttle component. It does not use a custom model. It uses f:selectItem(s) tags for elements definition instead, so converters creation isn't required for the component.

Value of the component is stored as a list, which contains select items values.

The following example shows a simple case where the values are applied and listed via Ajax. The select items in this example contain USA state names as a label for an item and the corresponding state capitals as a value for an item.

Just move some elements with state names to the result list and the corresponding state capitals will appear in the result panel.

Example
 Alabama
 Alaska
 Arizona
 Arkansas
 California
 Colorado
 Connecticut
 Delaware
 Florida
 Georgia
 Hawaii
 Idaho
 Illinois
 Indiana
 Iowa
 Kansas
 Kentucky
 Louisiana
 Maine
 Maryland
 Massachusetts
 Michigan
 Minnesota
 Mississippi
 Missouri
 Montana
 Nebraska
 Nevada
 New Hampshire
 New Jersey
 New Mexico
 New York
 North Carolina
 North Dakota
 Ohio
 Oklahoma
 Oregon
 Pennsylvania
 Rhode Island
 South Carolina
 South Dakota
 Tennessee
 Texas
 Utah
 Vermont
 Virginia
 Washington
 West Virginia
 Wisconsin
 Wyoming
Copy
Remove
Remove All
0 Options Choosen


View Source
RichFaces Wiki RichFaces Project Site