Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.3.5
-
None
-
ie6 or ff3
Description
when AutoCompleteTextField is reset to a 0 length input String (using backspace for exemple) Wicket.Ajax.invokePostCallHandlers(); is not invoke. it is a problem cause Wicket.Ajax.registerPreCallHandler is called.
when these events are used to show ajax busy indicator for exemple, it stay on busy state.
i think that
(solution 1) pre and post should be called on 0 input string length call
or
(solution 2) pre and post should not be called (there is no ajax call after all)
but not pre called et not post.
for case 1 (pre and post, it can be fixed quickly in wicket-autocomplete.js function doUpdateChoices(resp)
adding
if ((Wicket.Focus.getFocusedElement() != input) || !cfg.showListOnEmptyInput && (input.value==null || input.value=="")) {
hideAutoComplete();
Wicket.Ajax.invokePostCallHandlers(); // line to be added
return;
}
i don't have enought insight in wicket-ajax for proposing a fix for solution 2
thanx
Attachments
Issue Links
- is a clone of
-
WICKET-1944 Wicket-autocomplete.js does not invoke invokePostCallHandlers() when input string is 0 lenght or null
- Resolved
- is duplicated by
-
WICKET-2055 AutoCompleteTextField doesn't notify that ajax reqeust returned.
- Resolved