You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Apostolos Mantes (JIRA)" <de...@myfaces.apache.org> on 2007/10/02 16:35:51 UTC

[jira] Issue Comment Edited: (TOMAHAWK-1125) Show throbber as an option

    [ https://issues.apache.org/jira/browse/TOMAHAWK-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531811 ] 

mantesap edited comment on TOMAHAWK-1125 at 10/2/07 7:35 AM:
---------------------------------------------------------------------

Add throbber globally using the following js snippet
Probably not a good idea as is because it overrides all combobox controls but it works for my case

if (dojo != null) {
   dojo.widget.ComboBox = function() {
	
      dojo.event.connect("after", this, "_startSearch", this, "startedSearch") 
      dojo.event.connect("after", this, "_showResultList", this, "endedSearch") 

      this.startedSearch = function startedSearch(a,b) {
            Element.addClassName(this.textInputNode, myFacesInputSuggestAjaxThrobbing")			
      }
	
      this.endedSearch = function() {
            Element.removeClassName(this.textInputNode, "myFacesInputSuggestAjaxThrobbing");
      }
   };
}

      was (Author: mantesap):
    Add throbber globally using the following js snippet
Probably not a good idea as is because it overrides all combobox controls but it works for my case

if (dojo != null) {
	dojo.widget.ComboBox = function() {
	
		dojo.event.connect("after", this, "_startSearch", this, "startedSearch") 
		dojo.event.connect("after", this, "_showResultList", this, "endedSearch") 

		this.startedSearch = function startedSearch(a,b) {
			Element.addClassName(this.textInputNode, "myFacesInputSuggestAjaxThrobbing")			
		}
	
		this.endedSearch = function() {
			Element.removeClassName(this.textInputNode, "myFacesInputSuggestAjaxThrobbing");
		}
	};
}
  
> Show throbber as an option
> --------------------------
>
>                 Key: TOMAHAWK-1125
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1125
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>          Components: InputSuggestAjax
>    Affects Versions: 1.1.7-SNAPSHOT
>            Reporter: Apostolos Mantes
>            Priority: Minor
>
> There is no way for the user to know if the suggest function has returned an empty list or is still working. The old inputsuggestajax UI made the difference clear to the users via the throbber icon. If the user thinks that there are no suggestions and in the mean time moves the focus to a differenc component (by clicking or pressing the tab button) the list will popup but he cannot use the arrows to navigate to the results.
> Having an option to display the throbber icon would be useful in cases where a "heavy" suggest function is implemented or there is a slow network connection. More generally, a more "generic" approach would allow the user to define a class style to apply to the control while the ajax function has not returned. Maybe there is a way to override the called dojo function but my dojo skills are not sufficient to achieve it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.