Access to the filtered content of a datatable? (PF 2.2.1)

UI Components for JSF
Post Reply
zzion
Posts: 12
Joined: 29 Jul 2011, 11:14

19 Oct 2011, 17:08

Hi everybody,

didn't find anything about it in the forum yet, sorry if I missed s.th.!

Since the filtering doesn't affect the collection in the bean, is it possible to get the filtered content of a datatable? It doesn't matter if it's on the client or on the server, all I wish is something like currentTableCollection.get() or datatable.getCurrentElements() to get a list of the currently shown elements.

And because I think about switching to PF3 when it gets released: Does the (non-)access change in the new version?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

19 Oct 2011, 17:13

In 3.x you can hook-in to filter event and call getValue which will be the filtered list, not aware of a way in 2.x.

zzion
Posts: 12
Joined: 29 Jul 2011, 11:14

20 Oct 2011, 11:53

Thx, so I'll have to wait for v3...

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 47 guests