autoComplete minQueryLength: doc bug and unexpected behaviour

UI Components for JSF
Post Reply
Bank Mendes Gans
Posts: 6
Joined: 11 Jan 2018, 10:31

15 Jan 2018, 14:43

Hi all,

There is a bug in the PrimeFaces 6.1 pdf doc on page 28:
minQueryLength | true | Integer | Number of characters to be typed before starting to query.
One would expect a number in column number 2.

Also, the autoComplete component does not work as I expect on FireFox 57, Tomcat 8, Mojarra 2.3.2 and PrimeFaces 6.1.11. Since minQueryLength specifies the number of characters the user must type, I would expect a value of 0 (zero) to trigger a query and render a panel with options when the autoComplete gets focus.

In other words: if minQueryLength="0" and the user clicks in or tabs to an autoComplete, I would expect the suggestions for an empty query to appear.

Cheers,

Leo Mekenkamp

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

16 Jan 2018, 14:55

For me behaviour is as expected, but I can imagine your use-case. The source is here: https://github.com/primefaces/primeface ... te.js#L189 and can be overridden with some simple javascript

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 44 guests