Foren
PrimeFaces autoComplete not working
Hussain A, geändert vor 11 Jahren.
PrimeFaces autoComplete not working
Junior Member Beiträge: 47 Beitrittsdatum: 03.04.12 Neueste Beiträge
Hi, I am using Primefaces 3.5, working with p:autocomplete. It working perfectly, but auto complete stops showing suggestions when I add more than one portlet on the same page. Does any one know why its behaving this way?
Neil Griffin, geändert vor 11 Jahren.
RE: PrimeFaces autoComplete not working
Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
We have an outstanding issue regarding p:fileUpload that sounds similar: FACES-1384
Are you seeing a ViewExpiredException, or any other errors reported in your server log?
Are you seeing a ViewExpiredException, or any other errors reported in your server log?
Hussain A, geändert vor 11 Jahren.
RE: PrimeFaces autoComplete not working
Junior Member Beiträge: 47 Beitrittsdatum: 03.04.12 Neueste Beiträge
Thanks Neil for response.
Well, console does not show any exception. The prime faces based portlet that has p:autocomplete just stop calling managed bean's method.
Note: Other method are working, like an action method on command button etc.
Well, console does not show any exception. The prime faces based portlet that has p:autocomplete just stop calling managed bean's method.
<p:autocomplete completeMethod="#{controller.suggestionMethod}" />
here the suggestionMethod is responsible to generate suggestions, which is not called.Note: Other method are working, like an action method on command button etc.
Hussain A, geändert vor 11 Jahren.
RE: PrimeFaces autoComplete not working (Antwort)
Junior Member Beiträge: 47 Beitrittsdatum: 03.04.12 Neueste Beiträge
I have got a work arround for this problem. I just removed
<h:head />
tag from the other portlets on the page. So the remaining portlet that had p:autoComplete worked perfectly.
Neil Griffin, geändert vor 11 Jahren.
RE: PrimeFaces autoComplete not working
Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
Thanks so much for posting your solution. It might help direct us to a solution for FACES-1384.
Hussain A, geändert vor 11 Jahren.
RE: PrimeFaces autoComplete not working
Junior Member Beiträge: 47 Beitrittsdatum: 03.04.12 Neueste Beiträge
Its my pleasure.