I asked the question (via the http://www.exept.de->Company->Contact page): Is there was a widget for auto-completion since that functionality seems to be very popular these days. I received the following reply:
(correct me if I am wrong) autocomplete means, that after every keystroke, some callBack action is to be invoked to validate the existing input and find a good match.
Alternatively, you could also think of some pull-down combo list, which provides a selectable list of best-matches on demand (i.e. when pulled).
For the first, you either need an inputField and enable its "immediate accept" mode (either in the UI painter, or programmatically). In this mode, the model's value will be updated with every keystroke (or, if the
field has no model but a callBack action, that will be called for every key). This is in contrast to the normal input field operation, where the
model is only updated when field looses its focus, or the TAB or CR key is pressed. Of course, you have to take appropriate actions in that callback or when the model changes. I admit, that this may be so common,
that it may be worth an extra subclass of InputField, which defines this
as a common reusable framework...
The second aproach would use a ComboView with a dynamic menu. That means
that the pulled menu is not predetermined, but generated on-the-fly when
the menu is pulled. The easiest to do this is by giving a block as the list-model of the comboBox. This block should invoke a method from your application which generates the matchlist depending on the current contents of the inputField. This also looks like it is worth a reusable framework, which might be useful to others.
I am sorry, that we do not have something which works out-of-the-box.
But have a look at the FileBrowserV2's filename entry field. That should
work similar to what I described above.
Best regards,
Claus