Detect emptying in p:autoComplete

UI Components for JSF
Post Reply
JeeDev_User
Posts: 100
Joined: 26 Sep 2019, 11:02

24 Aug 2023, 13:08

Hi all,
PrimeFaces 11.0.9

I am unable to catch event when p:autoComplete is emptied (for example, manually with delete key).
I would like to trigger some Java code, but no matter what i try nothing just happens.

So far, I tried

Code: Select all

  <p:ajax    event="change"   listener="..."    process="@this"/> 
  valueChangeListener="...."
  minQueryLength="0"
  <p:ajax  process="@this"/>
Any advice?

jepsar
Posts: 166
Joined: 03 Sep 2014, 11:41
Location: NL / BE
Contact:

24 Aug 2023, 19:59

PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub: https://github.com/jepsar
Spotify: 90s Rave, Acid, Trance, House

JeeDev_User
Posts: 100
Joined: 26 Sep 2019, 11:02

25 Aug 2023, 11:02

Thanks, but does not work, at least with PF 11.0.9
BTW, do you have signature for the 'clear' event listener?

jepsar
Posts: 166
Joined: 03 Sep 2014, 11:41
Location: NL / BE
Contact:

25 Aug 2023, 17:02

I'm using `clear` without a listener, but I guess no parameters are required.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub: https://github.com/jepsar
Spotify: 90s Rave, Acid, Trance, House

JeeDev_User
Posts: 100
Joined: 26 Sep 2019, 11:02

25 Aug 2023, 17:20

jepsar wrote:
25 Aug 2023, 17:02
I'm using `clear` without a listener, but I guess no parameters are required.
But how to call Java code, without listener?
Which PF verrsion you are using?

jepsar
Posts: 166
Joined: 03 Sep 2014, 11:41
Location: NL / BE
Contact:

26 Aug 2023, 10:33

I don't need a listener. I just need to update a component. I'm using it with 12.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub: https://github.com/jepsar
Spotify: 90s Rave, Acid, Trance, House

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests