DataTable: Global Filter not preserved by MultiViewState

UI Components for JSF
Post Reply
mpint
Posts: 9
Joined: 21 Aug 2018, 11:52
Contact:

12 May 2021, 12:01

Description
When i am using the globalFilter IntputField in combination with the MultiViewState, the table entries are still filtered after revisiting the same site but the value (search keywords) of the globalFilter InputField is resetet.

How to reproduce
Visit the PrimeFaces Showcase for example: https://www.primefaces.org/showcase/ui/ ... tate.xhtml, enter something at the right in the global filter field (first dataTable on page), go to another page in Showcase and come back again. The entries are still filtered but the global input field is resetted.

Environment:
- PrimeFaces 10.0.0
- JSF Mojarra 2.3.14.SP01
- Testet in Firefox and Chrome
Freelance software developer and architect
GitHub Profile: https://github.com/MatthiasPischka, visit my blog: https://www.pischka-it.de
PrimeFaces Elite 10.0.1

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

12 May 2021, 13:40

Yeah it looks like the global filter is not stored in MultiViewState.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

mpint
Posts: 9
Joined: 21 Aug 2018, 11:52
Contact:

12 May 2021, 15:43

Ok how is the procedure? Are you going to write a new issue on Github or should I? I am asking because this is the first PrimeFaces bug I found which is annyoing enough to expect a quick fix 8-)
Freelance software developer and architect
GitHub Profile: https://github.com/MatthiasPischka, visit my blog: https://www.pischka-it.de
PrimeFaces Elite 10.0.1

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

13 May 2021, 16:34

You should submit an issue on GitHub Issues and make sure to include a Primefaces Test reproducer.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

mpint
Posts: 9
Joined: 21 Aug 2018, 11:52
Contact:

18 May 2021, 11:59

Thanks. I just created an issue on Github: https://github.com/primefaces/primefaces/issues/7325
Freelance software developer and architect
GitHub Profile: https://github.com/MatthiasPischka, visit my blog: https://www.pischka-it.de
PrimeFaces Elite 10.0.1

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

24 May 2021, 20:44

PR Submitted! Thanks for reporting.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 41 guests