Sylvain Wallez wrote:
The selection list generator, which is called through an Ajax request,
needs to access data in the form that is currently displayed. And this
form is held by the continuation.
I took a look at the generator, and I see that suggestion lists use
SelectionList interface, and that it does not pass data typed by the user to the
suggestion list.
It means that with this implementation we won't be able to implement real
google-style suggestion list where amount of choices is not trivial and it is
not practical to serialize all options at once:
list.generateSaxFragment(handler, this.locale);
I think we should introduce SuggestionList interface which should take one more
parameter - typed in data. Generator can still support both interfaces - for
those cases where you have only couple of choices. wdyt?
Vadim