Object selecteded event in autoComplete?
Posted: 21 Feb 2011, 19:53
Hi
I am trying to perform some client side action when an object is selected from the autoComplete drop down selection. I am struggling to find the right client side event for this. onselect, onchange, oncomplete events do not know whether an object was selected or not especially when there are no results returned. Richfaces has an event called 'onobjectchange' on their suggestionBox component which did the job. Is there something similar that I can use in p:autoComplete?
Also, is there a way to show a default label such as 'No results found' when there are, well, no results returned? I feel that it will confuse users when they dont see any results esp. when used in conjuction with forceSelection=true.
Please help. I need find a solution for this as soon as possible.
I am trying to perform some client side action when an object is selected from the autoComplete drop down selection. I am struggling to find the right client side event for this. onselect, onchange, oncomplete events do not know whether an object was selected or not especially when there are no results returned. Richfaces has an event called 'onobjectchange' on their suggestionBox component which did the job. Is there something similar that I can use in p:autoComplete?
Also, is there a way to show a default label such as 'No results found' when there are, well, no results returned? I feel that it will confuse users when they dont see any results esp. when used in conjuction with forceSelection=true.
Please help. I need find a solution for this as soon as possible.