Ajax Action
a4j:ajax
a4j:commandButton
a4j:commandLink
a4j:actionListener
a4j:jsFunction
a4j:poll
a4j:push
a4j:param
Ajax Queue
a4j:queue
a4j:attachQueue
Ajax Output/Containers
a4j:outputPanel
a4j:status
a4j:region
a4j:mediaOutput
a4j:log
Validation
Client Side Validation
rich:graphValidator
rich:message
rich:messages
rich:notify
Data Iteration
a4j:repeat
rich:dataTable
rich:extendedDataTable
rich:collapsibleSubTable
rich:dataScroller
rich:list
rich:dataGrid
Trees
rich:tree
Tree Adaptors
Output/Panels
rich:chart
rich:panel
rich:togglePanel
rich:tabPanel
rich:collapsiblePanel
rich:accordion
rich:popupPanel
rich:progressBar
rich:tooltip
Menus
rich:panelMenu
rich:toolbar
rich:contextMenu
rich:dropDownMenu
Inputs
rich:autocomplete
rich:calendar
rich:editor
rich:inputNumberSlider
rich:inputNumberSpinner
rich:inplaceInput
rich:fileUpload
Selects
rich:inplaceSelect
rich:select
rich:orderingList
rich:pickList
Drag and Drop
Drag and Drop
Miscellaneous
Standard elements skinning
rich:placeholder
RichFaces functions
rich:focus
rich:componentControl
rich:hashParam
rich:hotKey
rich:jQuery

This example demonstrates selection management using the built-in selection functionality.

The selectionMode attribute, which controls the selection mode, has three possible values:

  • none
  • single
  • multiple
  • multipleKeyboardFree - new!

To manage your selection at server-side, use the selection attribute, which points to a collection of objects. The collection holds rowKey identifiers of the currently selected rows.

Selection Mode
Cars marketplace
vendor
Model
Price
Mileage
VIN Code
Items stock
Days Live
Chevrolet
Corvette
Chevrolet
Corvette
Chevrolet
Corvette
Chevrolet
Corvette
Chevrolet
Corvette
Chevrolet
Malibu
Chevrolet
Malibu
Chevrolet
Malibu
Chevrolet
Malibu
Chevrolet
Malibu
Chevrolet
Malibu
Chevrolet
Malibu
Chevrolet
Malibu
Chevrolet
Tahoe
Chevrolet
Tahoe
Chevrolet
Tahoe
Chevrolet
Tahoe
Chevrolet
Tahoe
Chevrolet
Tahoe
Ford
Taurus
Ford
Taurus
Ford
Taurus
Ford
Taurus
Ford
Taurus
Ford
Taurus
Ford
Taurus
Ford
Taurus
Ford
Taurus
Ford
Taurus
Ford
Taurus
Ford
Taurus
Ford
Explorer
Ford
Explorer
Ford
Explorer
Ford
Explorer
Ford
Explorer
Ford
Explorer
Ford
Explorer
Ford
Explorer
Ford
Explorer
Ford
Explorer
Ford
Explorer
Nissan
Maxima
Nissan
Maxima
Nissan
Maxima
Nissan
Maxima
Nissan
Maxima
Nissan
Maxima
Nissan
Maxima
Nissan
Maxima
Nissan
Maxima
Nissan
Frontier
Nissan
Frontier
Nissan
Frontier
Nissan
Frontier
Nissan
Frontier
Nissan
Frontier
Toyota
4-Runner
Toyota
4-Runner
Toyota
4-Runner
Toyota
4-Runner
Toyota
4-Runner
Toyota
4-Runner
Toyota
4-Runner
Toyota
Camry
Toyota
Camry
Toyota
Camry
Toyota
Camry
Toyota
Camry
Toyota
Camry
Toyota
Camry
Toyota
Camry
Toyota
Camry
Toyota
Camry
Toyota
Camry
Toyota
Camry
Toyota
Camry
Toyota
Camry
Toyota
Camry
Toyota
Avalon
Toyota
Avalon
Toyota
Avalon
Toyota
Avalon
Toyota
Avalon
Toyota
Avalon
Toyota
Avalon
Toyota
Avalon
Toyota
Avalon
Toyota
Avalon
Toyota
Avalon
Toyota
Avalon
Toyota
Avalon
GMC
Sierra
GMC
Sierra
GMC
Sierra
GMC
Sierra
GMC
Sierra
GMC
Sierra
GMC
Sierra
GMC
Sierra
GMC
Yukon
GMC
Yukon
GMC
Yukon
GMC
Yukon
GMC
Yukon
GMC
Yukon
GMC
Yukon
GMC
Yukon
GMC
Yukon
GMC
Yukon
Infiniti
G35
Infiniti
G35
Infiniti
G35
Infiniti
G35
Infiniti
G35
Infiniti
G35
Infiniti
EX35
Infiniti
EX35
Infiniti
EX35
Infiniti
EX35
Infiniti
EX35
44811
79880.0
OMXYGDTKLDWXAUWUJ
FSCVNJJ
17
54674
46162.0
DNHKMLBQLVHDSUXKH
BRIOHOX
4
37726
26932.0
EUKHEVDPIFPYFZUBA
QKOQHJ
40
29000
64548.0
NSJGENEVBWMESGZAE
ECMPQAS
47
18927
21062.0
SFWTFGFZDUFUNTOZE
QRXIGH
30
22679
23260.0
WFCTIRFQRBBBROVKE
FWIRLH
64
15398
39780.0
CZVVPUXFQTIVHYFTR
FFZVTIK
41
39863
52866.0
KNXXKNEXDFMDVVOMV
IWIBAP
15
23687
19298.0
ECYZQJOJEXYWAUGJN
ALGWEMO
89
48520
34781.0
JIZMZLDILVZUNTJNW
PYVQXOJ
42
23978
36680.0
IPURPHOHRAPKXIMKB
SDFATWR
25
42924
63384.0
ALCMXFSLAZNUZVUXG
ETRABL
52
44950
8148.0
EXJUMWSLNFJXKPLFB
VQFGNK
37
27795
41409.0
VOZVOKQEFIWLQIBQY
TJHVJZR
58
22665
42629.0
DWQJJDAZDFAKXQJMG
QQTWEQP
43
31355
65835.0
KBGWMFTGDMQWQUNXP
ERZMOJB
26
43470
34380.0
JWLJFVRZQELYAXENQ
GFAIQAI
63
20773
24308.0
PYJWPIIILTIRKEJCK
PSQFOIV
50
40433
10023.0
PQGOEMTQSMTUOLIMO
SMHVEWJ
84
31325
68278.0
GLNJFPIWQIMIPUMVS
NHOKDQO
36
35708
53739.0
LRDPZUSBZRZMIEXRV
RURNXB
63
54927
60256.0
JKQYKOUSELEZMIKEM
TTBJZP
64
15250
79327.0
SUHYGZZQEQXRRRVUV
EOIKVF
2
23612
21496.0
PDXLLXCADSRNRBGYM
CGEOZW
51
35745
46485.0
MOISTUEALMUKMCHTZ
IHEIMJW
47
33507
56768.0
UHNQOJXPBIQLDLWRL
GSNOZU
35
15285
79608.0
XYKSHTBGAIJWGZMCR
RIMVKE
75
29335
51733.0
VDVXMFNBRRBPVKQDI
HNIHDG
2
35634
78051.0
ULDGKLZFSOZPSEZMS
GIAKTJ
43
24613
63414.0
TNXBJMHKHSLGKOIRK
EBTRKEP
13
23709
31778.0
IGOPEYOFGDVUCMANC
TLQRNH
83
33524
9165.0
LPUREUAXMADFLXOON
OMTHUM
3
46089
16437.0
SYASPJHBKSCJTZPPE
WCVDDJ
2
32173
75673.0
DGZICTTJUAYMLRZTK
SMPGNZ
11
31828
14573.0
USFTEOHFBBRSIFMYS
ZELYLXF
71
17550
22899.0
VEQLOYRAQYGQCBALQ
NTWHJW
74
16621
50321.0
CHNHPPQOOLWWGNAGP
WNLERX
8
28323
30851.0
LEYJYAMURFJRJOWUA
EFBLXGB
25
27170
23451.0
LBRVGIMYTEZHOCYGW
AYRTQM
41
43192
37406.0
IIGAGBLBPAMLVWUUF
TODJNL
59
51863
19793.0
OAMSLITVWEUGTICPT
QXEKIN
70
54518
79311.0
WRASQHAAGTNONAXPA
XQTKEOQ
83
40664
15811.0
OEILPLQMOTYFUEZKN
IEMITYW
80
34447
67430.0
YDKGLSYMPDDAKIRFC
DHWPSQ
25
20633
26751.0
FAOAYOBZBCXOFVJGF
SPCOCI
53
41463
26066.0
NEUILLTJCTMVPLVJE
MPIRGU
1
34893
78093.0
BGBAXXFHPGULIRKSR
PAOFXMN
36
39002
67223.0
ZKWCHWIRQRZLUETIT
ZCIRVMO
12
20031
77811.0
RTDUUONWPQJDCUEVX
VSYSGR
62
44333
8125.0
TJRBJQJPXONAWGLPS
CWCRIX
9
51103
15432.0
KUIUFTACOGCTKEYQN
UTIQRL
14
42583
18846.0
ZIFPCAIZPPXZNRHTQ
LYMSNYU
2
46819
53878.0
OEMTUNVYTJFLDNSBE
AUPOXV
90
47607
14416.0
KMYYBDJXVUAHXIUON
SRAKTO
14
53612
42849.0
FVGBPWCUHMABZKVUG
MHSKUDQ
26
15999
76172.0
ADOEDUCWJCLOXDWLQ
IRXWJKY
72
17773
61723.0
KLQJSFYRESMUGULVK
GVVYGI
3
38148
14557.0
NKMXZFUULAQTYYRMS
IQQSIO
41
50265
68819.0
JFWGZPPVBRGDHYCNZ
CLZYXU
80
47717
24068.0
MLOEEFRIZVPWAECEX
WTJJOR
17
54484
9342.0
PRGQNAKAEWEFPLYEO
SUTSPK
24
27711
16123.0
ANXNXZMPOVAGPHBYW
MVCHBHT
10
21320
29929.0
KQHLEMJXGOHQDBTIA
OXBGWZS
50
52012
69532.0
AMWHJKUIBLYBBQOVS
AKTAWF
48
53790
46268.0
ALDIUWFRBCEPWUSDF
LAXQYV
19
17138
35749.0
BDPESFHSLPUQPEGLZ
PGSJWA
42
18114
67437.0
JNAFKKZFCJYWCAXPS
BSPDXSN
6
49351
37087.0
PMBLIJLGBAJXZPFNJ
QZTXNXW
57
15308
45673.0
XLOBOXBHINHNBNMMU
RVDZHKK
78
39691
44877.0
GKVTLNXLYRRDPOEVE
QSYAWOD
33
24272
57186.0
LUPJSIHUDKZGRXBUJ
YRZQUDM
80
52409
38750.0
BQWTBZCVVGWPZXXIU
TIAXVU
72
20962
61342.0
JRTVJYDVBERFKAEHB
JSHMXSO
5
46146
54469.0
KMNBQXVGOCNQQZWEZ
QNQAIKH
5
43389
11991.0
YBROQKPHOMYELPMSP
JOXHTKA
81
16817
58491.0
PZODIGIMEIFZOVKZB
AAPASNI
87
17293
33799.0
INIDIJQVQUYXMDKNQ
PETJBIN
10
54277
32334.0
FNFWENAHYLMBZFPDK
GZEMBMT
54
32826
28864.0
JWFFGTEEXUMRWJSEI
OHLNVY
69
54778
53193.0
GOYHRVOYXMOQCXCPN
GYPZCR
5
45044
15016.0
XFVITEFLWGTJHSVAL
TDGAURJ
28
31080
60175.0
KKLVBDKZLUDSNJJQA
ELGHRKO
58
54204
14483.0
HGNWWBGCCAVLBFUAL
WEERYE
24
32974
32488.0
GUVUHFEJPCVTLZUBO
TKNVSRU
41
46042
24306.0
USYVFKGPSWJCKMEGE
BPRGMJQ
44
34790
71998.0
QUKXSFMSPSFKYWWIU
HWKAZP
80
25628
18839.0
EMVXQOHKZPWEGKIGB
PSSISVC
88
35562
35180.0
IEQBZFJIANXPGITIR
VBBZKR
19
30607
46282.0
WHENGTIJUTQFJDVAJ
HCMZMPU
45
28931
29160.0
SRKJXAPZEUDZQOMIY
ENZSIOX
78
39821
61112.0
VEJSERGUKZYDMLODQ
SRIYNBL
72
25411
74819.0
TRBXLXPXCNKTLFRZV
VZFHWK
45
32227
37254.0
AIHSJKQKLUPBXOFUL
YFHUWNL
12
42514
54509.0
AIEUVWFJQKOFAOOWK
DSITPUK
28
27439
39655.0
DJEZDLMQYJQILPEII
TUYKLN
89
44500
62780.0
UIPNIMDXZEDGELQWW
TWXXVOR
9
41666
66775.0
PMTPZIPZKMJYIWPJM
CZOIHX
23
28380
29368.0
JCJHYBRPLNGAWUFGY
BWEFPDV
18
47840
71520.0
YCADBDJGTIRNKBEOA
FFMLAR
90
50801
35823.0
BIAYFDSZRJZCHGLKM
KELYDG
90
37605
50106.0
ZTPOKGNJCAOPFAJRD
QNUOIJT
37
21091
19007.0
WZXRNNGCQCWNIGTXI
ERXUZP
3
41197
41569.0
TBADEFTPWLKHZHPFC
ZVATBI
69
30222
30999.0
CQJHLXBGXFIAADEYE
WBRWHPO
46
26654
76452.0
FRODCQFYFPKOKFRJA
FPJWDGE
17
38953
73945.0
SJUSYMQREJMCJZKKI
FLAPCAC
57
44675
30492.0
BRKAOYQLLSLCDSHVD
AADKAMF
76
46293
36457.0
TOEIMBMBCVPADRSNC
FUMRPI
13
50536
61703.0
BRWKXHMTRDPFEPNAB
JQXWMY
52
40568
65545.0
DMSJNEOBVEYGPKJBY
BUJRGY
48
23636
23846.0
UICEZOWKCZMRDZMTM
WXQTZL
51
36049
30812.0
LMFXEHZHQMTZYAGVC
XEMZYGZ
30
49626
63052.0
KZQRSFRIFSJIEKULQ
GDXZELC
44
38264
50967.0
FSPTPQMAWBHPVIJQV
HRMHZPG
56
21239
65980.0
FJYRPWFTZDZBTVVFV
CSPWOL
2
50327
38330.0
QJGVCYXHMQUNTNCDK
OWFLSO
84
42634
75729.0
JMCWGZLYFTGTGKGRS
MWBNGDA
21
38451
7983.0
MMHJCSWVEKGIQRUOM
IAFTQLW
50
18707
29219.0
KJFAZZIFYQBFISWSG
KVNKAT
76
37461
75843.0
DIEEGMIHMHDOLOIPP
HAYPRD
72
17490
61122.0
OAZPGJSDBJFPSFAHM
JVLAEM
54