[ 
https://issues.jboss.org/browse/RF-10227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12813549#comment-12813549
 ] 

Lukáš Fryč edited comment on RF-10227 at 10/11/13 1:03 PM:
-----------------------------------------------------------

Guys, even though I understand your requirements,

I'm not sure the 'nothingLabel' is actually good approach:

autocomplete doesn't serve the purpose of selection from choices, but rather 
suggesting when match is found.

If you want nothingLabel, I would suggest to use rich:select, which I believe 
should have this functionality.
rich:select provides your with a set of options your input is limited to. 
That's why it make sense to report user no valid option was found
/wrt the input he provided.

----

Without philosophical questions,

It seems jQuery UI Autocomnplete (which Rich Autocomplete is based on) also 
doesn't has this functionality built-in,
and people suggest to use such workarounds: 
http://stackoverflow.com/questions/4141945/jquery-ui-autocomplete-show-something-when-no-results

If you want to help to proceed with this issue, please create an issue in 
[RichWidgets issue 
tracker|https://github.com/richwidgets/richwidgets/issues?state=open] first and 
we can discuss impl details there.
                
      was (Author: lfryc):
    Guys, even though I find it understand your requirements,

I'm not sure the 'nothingLabel' is actually good approach:

autocomplete doesn't serve the purpose of selection from choices, but rather 
suggesting when match is found.

If you want nothingLabel, I would suggest to use rich:select, which I believe 
should have this functionality.
rich:select provides your with a set of options your input is limited to. 
That's why it make sense to report user no valid option was found
/wrt the input he provided.

----

Without philosophical questions,

It seems jQuery UI Autocomnplete (which Rich Autocomplete is based on) also 
doesn't has this functionality built-in,
and people suggest to use such workarounds: 
http://stackoverflow.com/questions/4141945/jquery-ui-autocomplete-show-something-when-no-results

If you want to help to proceed with this issue, please create an issue in 
[RichWidgets issue 
tracker|https://github.com/richwidgets/richwidgets/issues?state=open] first and 
we can discuss impl details there.
                  
> autocomplete: implement "nothingLabel"
> --------------------------------------
>
>                 Key: RF-10227
>                 URL: https://issues.jboss.org/browse/RF-10227
>             Project: RichFaces
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: base functionality, component-input
>    Affects Versions: 4.0.0.Milestone5
>            Reporter: Juergen Zimmermann
>             Fix For: 5-Future
>
>
> rich:autocomplete doesn't have an attribute for a "nothingLabel" to indicate 
> that there are no matches

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to