Primefaces datatable filter doesn't work

前端 未结 5 1799
萌比男神i
萌比男神i 2020-12-21 06:04

I must do something fundamentally wrong, I stripped down the code to the bare minimum with a data table and enabling one column filter and a globe filter.

The funny

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-21 06:48

    You should initialize filtredProjects with the same data that contains the ArrayList allProjects like this:

    @PostConstruct
    public void loadAllProjects(){
    allProjects =  projectEJB.getAllProjects();
    filtredProjects = projectEJB.getAllProjects();
    }
    

提交回复
热议问题