How to filter datatable properly?

UI Components for JSF
Post Reply
xuxk
Posts: 1
Joined: 08 Jun 2016, 11:28

26 Jun 2016, 13:18

There are something wrong with my last topic images, so I post again.
When I develop web page with primefaces, I have a datatable filter problem:
After I click search button, I got 16 records without filtering. Following is the picture:
Image
step1, I clike the 'status' column filter, Following is the picture:
Image
There are 3 filter elements in 'status' filter list
step2, I click the 'region' column filter,Following is the picture:
Image
There are 4 filter elements in 'region' filter list
step3, I filter the 16 records by select the 'status' column '70-Retailed', I got 3 records,following is the picture:
Image
In these 3 records, the 'Region' column has 3 different values, they are '4-west','1-north' and '2-south'.
step4, now I click the 'region' column filter, there are still 4 elements in the filter list, following is the picture:
Image
But according to the result, there should only 3 elements in the 'Region' filter list, they are '4-west','1-north'
and '2-south', no '3-east' element. I mean the filter elements can be changed according to the result.

Anyone can help me? Thank you very much!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 42 guests