2 Replies Latest reply on Sep 5, 2011 2:58 PM by sweetpea

    rich:extendedDataTable filter (richfaces 4.0.0) not working

    sweetpea Newbie

      Hi, I cannot get filtering to work at all.

      My bean:

      {code}package com.nokia.DWH.dao;


      import java.util.ArrayList;


      import javax.faces.bean.*;

      import javax.faces.bean.ManagedBean;

      @ManagedBean(name="TestDao", eager=true)


      public class TestDao {

                String name;


                public String getName() {

                          return name;



                public void setName(String name) {

                          this.name = name;



                public TestDao(String name) {




                public TestDao() { 



                public ArrayList<TestDao> listTestDaos() {

                          ArrayList<TestDao> l = new ArrayList<TestDao>();

                          for(int i = 0;i < 40;i++) {

                                    l.add(new TestDao(i + "bean"));


                          return l;




      my xhtml-page test.xhtml:


      {code:xml}<?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


      <html xmlns="http://www.w3.org/1999/xhtml"






                <title>JSF 2.0 test page</title>



                <h3> JSF 2/table demo</h3>


                <rich:dataTable value="#{TestDao.listTestDaos()}" var="o"

                                    selectionMode="multiple" style="width:200px;height:100px;">

                                    <rich:column width="200px" filterBy="#{o.name}" filterEvent="onkeyup">

                                              <f:facet name="header">

                                                        <h:outputText value="name" />

                                                        <h:inputText value="#{o.name}"/>


                                              <h:outputText value="#{o.name}" />







      Table is rendered beautifully.


      BUT: All the examples I have seen say that filtering can be enabled easily by just adding filterBy and filterEvent to rich:column.


      Well, doing that does nothing at all, no input is rendered.So I added input-field, but still nothing is happening. I checked out a lot of examples from the documentation but I seem to be missing something simple.