You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Juergen Donnerstag (JIRA)" <ji...@apache.org> on 2008/12/29 21:46:44 UTC

[jira] Resolved: (WICKET-1944) Wicket-autocomplete.js does not invoke invokePostCallHandlers() when input string is 0 lenght or null

     [ https://issues.apache.org/jira/browse/WICKET-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juergen Donnerstag resolved WICKET-1944.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4-RC2
         Assignee: Juergen Donnerstag

thanks

> Wicket-autocomplete.js does not invoke invokePostCallHandlers() when input string is 0 lenght or null
> -----------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-1944
>                 URL: https://issues.apache.org/jira/browse/WICKET-1944
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.3.5
>         Environment: ie6 or ff3
>            Reporter: gaucher
>            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.