Adding a parameter in the Autocomplete call

UI Components for JSF
Post Reply
daniel.grane
Posts: 30
Joined: 23 Oct 2009, 06:08

30 Nov 2009, 04:09

Cagatay,

I was wondering if it is possible to add a parameter to the autocomplete completeMethod, i.e. having in my controller myMethod(String query, Object myObject), because I need to prevent searching in all the rows in the database...


Thanks.


Daniel.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

02 Dec 2009, 16:47

Daniel, did you make it work anyway with spring webflow? Right now it doesn't support passing additional parameters out of the box.

daniel.grane
Posts: 30
Joined: 23 Oct 2009, 06:08

04 Dec 2009, 18:05

Yup, the autocomplete is working, but with no additional parameters, just the string that is taken from the input.

Thanks.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

06 Dec 2009, 20:02

I see, maybe we can add support for f:param here but can't figure out how it'll help you. What kind of parameter do you need to send and how will you use it?

atamer
Posts: 8
Joined: 14 Dec 2010, 15:38

16 Mar 2011, 09:57

Hello
It can be used to implement generic auto complete , for example you can give query hint with parameter and on backside interpret this value and create convenient sql
Is it possible to send extra parameter at the moment ?
Thank you

moonblade.wolf
Posts: 48
Joined: 07 Dec 2010, 02:46

18 Jul 2011, 12:51

+1 with the generic autocomplete.
Currently working on a composite component that do just that,
the paramterizable autocomplete with additional query filters other than the string passed to the method.

I was thinking about using f:param, or p:ajax + keyup + f:attribute that contains the additional query filters,
but it seems that this is not supported yet from my experiment using 2.2

spasa
Posts: 6
Joined: 01 Feb 2013, 17:02

01 Feb 2013, 17:06

is this fixed by now , is it possible to add an aditional parameter to the autocomplete (I need to have 2 parameters)
jsf 2.1
primefaces 3.5
glassfish 3.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 59 guests