Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoComplete: forceselection="true" triggers multiple requests #2910

Closed
giorgioprimefaces opened this issue Nov 8, 2017 · 4 comments
Closed
Assignees
Labels
6.1.9 🐞 defect Bug...Something isn't working
Milestone

Comments

@giorgioprimefaces
Copy link

giorgioprimefaces commented Nov 8, 2017

1) Environment

Defect on PF 6.1.7 and 6.1.8 (was working on PF 6.1.3 and previous) not tested 6.1.4, 6.1.5, 6.1.6
using Apache Tomcat 7.068

2) Expected behavior

listener called once

3) Actual behavior

after item selection if I click anywhere outside the autocomplete listener is called one more time

4) Steps to reproduce

set forceSelection="true" using a converter

5) Sample XHTML

<p:autoComplete value="#{beanGiornalieroAttiv.spazioSel2}" completeMethod="#{beanGiornalieroAttiv.completeLuogo}" var="luo" itemLabel="#{luo.luogoConPrincipale}" itemValue="#{luo.codSpazio}" dropdown="false" size="80" maxResults="30" minQueryLength="3" converter="luogoCV" forceSelection="true"/>

@jxmai
Copy link
Contributor

jxmai commented Nov 8, 2017

It sounds like a regression, but your sample is not runnable. Please provide a sample based on https://github.com/primefaces/primefaces-test or paste a fully runnable bean + xhtml

@tandraschko tandraschko changed the title autocomplete forceselection="true" error AutoComplete: forceselection="true" triggers multiple requests Nov 8, 2017
@tandraschko tandraschko added the 🐞 defect Bug...Something isn't working label Nov 8, 2017
@tandraschko
Copy link
Member

@mertsincan Can you check this? Not sure if broken in trunk but it seems that it broke between 6.1.3 and 6.1.7

@jxmai
Copy link
Contributor

jxmai commented Nov 11, 2017

@mertsincan Just a guess, but it might be worth revisiting this ticket: #2733 and this commit: 711b002

@mertsincan
Copy link
Member

I'll check it.

@mertsincan mertsincan added this to the 6.2 milestone Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.1.9 🐞 defect Bug...Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants