File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Primefaces datatable dynamic object[] filtering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Primefaces datatable dynamic object[] filtering" Watch "Primefaces datatable dynamic object[] filtering" New topic

Primefaces datatable dynamic object[] filtering

Cj Recto

Joined: Mar 02, 2012
Posts: 26

I'm trying to create a dynamic datatable using object[] instead of entity. So far, I was able to do it, but I can't find a way to filter the table.

Heres my xhtml code:

In a normal datatable that uses an entity, you just put the entity property in filterBy attribute. But since I'm not using an entity but an Object[], how can I filter the datatable?
What should I put on the filterBy attribute?

I agree. Here's the link:
subject: Primefaces datatable dynamic object[] filtering
It's not a secret anymore!