This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Primefaces DataTable Field Specific and Global Filtering Issues  RSS feed

 
Eric Bresie
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • 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
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!