PhotoAlbum Application Download Support Developer Guide
Skins:
Resources/Beans Handling
Ajax Miscellaneous
Built-In Filtering Usage
External Filtering Usage

Rich Data Table has columns filtering feature built-in. The simplest way to add filtering capability is to define filterBy attribute at a column you need to be filterable.

In this attribute you should define iterable object property which should be used when filetring performed.

In this example you could see that two first columns filtered after the corresponding input is changed.

Filtering DataTable example
Filtering Example
State NameState Capital
AlabamaMontgomery
AlaskaJuneau
ArizonaPhoenix
ArkansasLittle Rock
CaliforniaSacramento
ColoradoDenver
ConnecticutHartford
DelawareDover
FloridaTallahassee
GeorgiaAtlanta
HawaiiHonolulu
IdahoBoise
IllinoisSpringfield
IndianaIndianapolis
IowaDes Moines
KansasTopeka
KentuckyFrankfort
LouisianaBaton Rouge
MaineAugusta
MarylandAnnapolis
Details of usage

In order to change filter event you should change filterEvent attribute on a column (e.g. filterEvent = "onblur")

In order to get or change current filtering value filterValue attribute is provided. It should be defined with initial filtering value on the page or as value binding to get/change it on server.

This is built-in feature. It uses "startsWith" function to make filtering.

If filterBy attribute is set, a column will render default inputs with default filtering behaviour

In order to change default filtering behaviour another definition is used. See the example shown at the second tab("External Filtering")



View Source
RichFaces Wiki RichFaces Project Site