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.
Adding a parameter in the Autocomplete call
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Daniel, did you make it work anyway with spring webflow? Right now it doesn't support passing additional parameters out of the box.
-
- Posts: 30
- Joined: 23 Oct 2009, 06:08
Yup, the autocomplete is working, but with no additional parameters, just the string that is taken from the input.
Thanks.
Thanks.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
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?
-
- Posts: 48
- Joined: 07 Dec 2010, 02:46
+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
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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 59 guests