You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Frank Klein Koerkamp (JIRA)" <ji...@apache.org> on 2009/01/21 14:53:59 UTC
[jira] Commented: (WICKET-2032) CLONE -Wicket-autocomplete.js does
not invoke invokePostCallHandlers() when input string is 0 lenght or null
[ https://issues.apache.org/jira/browse/WICKET-2032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665827#action_12665827 ]
Frank Klein Koerkamp commented on WICKET-2032:
----------------------------------------------
Also add call hideIndicator(). See example beneath
if ((Wicket.Focus.getFocusedElement() != input) || !cfg.showListOnEmptyInput && (input.value==null || input.value=="")) {
hideAutoComplete();
Wicket.Ajax.invokePostCallHandlers();
hideIndicator(); //Line to be added also
return;
}
> 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.