Using the inputSuggestAjax, I get autocompletion, brilliant.

Now, is there any way to add in the response whether the sent value is
effectively one of the auto-suggested values or something else, new
(thus not yet in the autocomplete list)?

I was imagining maybe an hidden field set to 0 or 1 ...

 

Furthermore, it seems to me that this component can work with
label-value lists, if it is the case, what happens when selecting one of
the suggested entry is clear to me (the value is returned instead of the
label), but what once again, if the user enters something new? How would
the component make a difference between a value resulting from a
selected entry (label) and a new value added in purpose (creation of a
new label).

 

The bottom line is that it is important in my use case that the user
could either select something from the suggested list (so that I can
link onto the PK in the underlying DBMS) OR enter any value of his
choice (so that I can create a new entry in the underlying DBMS).

 

Thanks for your lights.

 

 

Reply via email to