• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Primefaces DataTable Field Specific and Global Filtering Issues

Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working with Primefaces Datatables with global and field specific filtering (based on the showcase dataset filter example) but am having filter issues. I have enabled pagination and selection capabilities on the datatable

I populate the table with all available items, have a list for selected and list for filtered items.

I am able to filter from the field specific field initially, but subsequent attempts in the same specific field seem to no longer work.

It seems like there may be an update on the filter field value which is not properly triggering the filter of the widget.filter() correctly or updating the bind bean attribute
The Global filter also does not appear to function at all.

The Page Bean looks like:

Dataset class is basic POJO with attributes used in the table.

I suspect I maybe missing a needed attribute (i.e. update, render, ???) but did not see anything like that in the showcase version so am a little confused.

I have tried adding p:ajax event handlers like:

but this does not appear to do anything to help.

Any ideas?

Environment is Primefaces 3.5 on Mojarra 2.0.11 on WebLogic 10.0
Eric Bresie
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Partial solution...

I remove the pagination and selection options, it seems to start working. I was able to re-enable the selection, so it appears to be related to pagination.

However, pagination is still needed. Anyone have any thoughts?
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic