CLONE -Wicket-autocomplete.js does not invoke invokePostCallHandlers() when
input string is 0 lenght or null
------------------------------------------------------------------------------------------------------------
Key: WICKET-2032
URL: https://issues.apache.org/jira/browse/WICKET-2032
Project: Wicket
Issue Type: Bug
Components: wicket-extensions
Affects Versions: 1.3.5
Environment: ie6 or ff3
Reporter: Frank Klein Koerkamp
Assignee: Juergen Donnerstag
Priority: Minor
Fix For: 1.4-RC2
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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.