Hi!

I am developing a search component similar to this page:

http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/select1

The textfield should provide autocompletion based on the selection of
the select component. In order to remember the current selection, I
write a field in the Java class during the "valueChanged" event:

-----

private MyObject object;

Object onValueChangedFromMySelect(MyObject object) {
        selectedObject = object;
        [...]
}

List<String> onProvideCompletionsFromSearchField(String query) {
        return possibleValues(query, object);
}

-----

Unfortunately this does not work as expected. Even when the field is
marked for flash persistence, the "provideCompletions" event is only
able to read the value once, after that it is null.

Is there a "best way" to store changes made by AJAX requests in the page?

TIA
 Stephan

Attachment: smime.p7s
Description: S/MIME Kryptografische Unterschrift

Reply via email to