This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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!