How do you call filter only on the column filter?

UI Components for JSF
Post Reply
primeUser99282
Posts: 36
Joined: 14 Nov 2021, 01:48

02 Dec 2021, 19:16

I'm trying to follow the date picker example in showcase:

<p:datePicker selectionMode="range" onchange="PF('customersTable').filter()" />

However, when I have a global filter field on the form, it always gives me this warning:

"cannot validate component with empty value:"

Is this just a bug and/or can I get around it by just calling .filter() on the date column filter instead of the entire table?

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

02 Dec 2021, 19:52

No filter() is for the entire table.
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

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

03 Dec 2021, 11:21

"cannot validate component with empty value:" is just a warning from MyFaces, it should not break anything
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests