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

In order to use Filtering Feature of rich:dataTable with some custom filtering functions and controls you should use the next available attributes on columns:

  • filterExpression - Attribute which allows to define expression evaluated to boolean value. This expression should check whether the object satisfies filtering condition or not.
  • filterMethod - Attribute which should be defined with method binding. This method should accept on Object parameter and return a boolean value. Thus, this method also should be used to check whether the object satisfies filtering condition or not.

In the next simple example we use filterMethod and filterExpression for the first and second columns filtering correspondingly.

Filtering DataTable example
Filtering Example
State NameState Time Zone
ConnecticutGMT-5
DelawareGMT-5
FloridaGMT-5
GeorgiaGMT-5
IndianaGMT-5
KentuckyGMT-5
MaineGMT-5
MarylandGMT-5
MassachusettsGMT-5
MichiganGMT-5
New HampshireGMT-5
New JerseyGMT-5
New YorkGMT-5
North CarolinaGMT-5
OhioGMT-5
PennsylvaniaGMT-5
Rhode IslandGMT-5
South CarolinaGMT-5
TennesseeGMT-5
VermontGMT-5


View Source


View FilteringBean.java Source
RichFaces Wiki RichFaces Project Site