How to send autocomplete value to textbox in Tapestry5?

I have an autocomplete textbox and mixUpdater mixins. Based on the value I entered, I call a service that returns new values ​​for the autocomplete selection. So far, so good. The big problem for me is that the autocomplete selection doesn't send the selected value. I want to update another zone based on this value. Now the way it works, I have to submit the entire form and reopen it. But this is not what the client wants, he has to do it on the fly without submitting the form. Is there a solution for this? Thank.

+3


source to share


1 answer


I want to update another zone based on this value.

I tried to do this with your setup and actually worked, but the downside is that the value I get as the CHANGE event for input is what the user typed in (not what the user selected from the autocomplete list).

To get the value from the selected autocomplete list (although I haven't tried it), you must use the Autocompleter prototype callback parameter.Note that you must rewrite the new autocomplete mixing to do this, as Tapestry's built-in autocomplete does not enforce this callback parameter.



I also tested tapestry-jquery autocomplete mixing and while jquery autocomplete supports the autocompleteselect event , tapestry-jquery does not handle it in this instantiation.

I have not tested the chenille car kit car kit that can help you, I really don't know.

As far as I know, you should develop your own autocomplete set based on any of these and add the selected item event functionality to it.

+4


source







All Articles