Save the datatable filters

UI Components for JSF
Post Reply
Posts: 29
Joined: 24 Aug 2016, 18:52

15 Jul 2017, 00:07

The primefaces datatables has a option that is to add filters, I wish to know. Is there a way for me to save the values that someone inserts on those filters.

Someone enters and filters id = 1, name = maria, number of id = 67. She goes to another page and edits Maria's info, but when she returns to the datatable page, she has lost all the filters and has to rewrite all the values.

Is there a way to save those values? or retain them?

Expert Member
Posts: 8981
Joined: 17 Jun 2010, 13:34
Location: Netherlands

15 Jul 2017, 09:39

Recent versions have 'stateSaving'... Check the PrimeFaces showcase ... tate.xhtml
Ronald van Kuijk
PrimeFaces 6.1, PrimeFaces plus 0.0.2 | JbossWildfly 10.1| Mojarra 2.2.13
Fedora 61, Firefox 'most recent'
Read the forum posting rules

Posts: 29
Joined: 24 Aug 2016, 18:52

17 Jul 2017, 18:18

Great!! thank you very much!

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider] and 7 guests