[richfaces-issues] [JBoss JIRA] (RF-11088) rich:select modify manualInput behavior to avoid single item scoped item list popup when editing value

J W (JIRA) jira-events at lists.jboss.org
Mon Jul 1 02:51:21 EDT 2013


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

J W commented on RF-11088:
--------------------------

I have edited the select.js in the following way to get it work:
{code}__onBtnMouseDown: function(e) {{code}
and
{code}__keydownHandler: function(e) {
     case rf.KEYS.DOWN:{code}
do no longer call *this.__updateItems();* , but a custom function which gets the original items from cache, adds them to the list and displays them:
{code}__origItems: function() {
                var newValue = this.__getValue();
                newValue = (newValue != this.defaultLabel) ? newValue : "";
                this.__updateItemsFromCache(newValue);
				
				 if (this.originalItems.length > 0 && this.enableManualInput) {
                    var newItems = this.originalItems;
                    var items = $(newItems);
                    this.list.__setItems(items);
                    $(document.getElementById(this.id + "Items")).empty().append(items);
                }
            },
{code}

This is working fine at the moment. The only thing missing is that the previous selected value "rf-sel-sel" is not marked in the HTML anymore after clicking again on the list. Any ideas?
                
> rich:select modify manualInput behavior to avoid single item scoped item list popup when editing value
> ------------------------------------------------------------------------------------------------------
>
>                 Key: RF-11088
>                 URL: https://issues.jboss.org/browse/RF-11088
>             Project: RichFaces
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: component-selects
>    Affects Versions: 4.0.0.Final, 4.0.1.Milestone1, 4.1.0.Milestone1
>            Reporter: Justin Wyer
>            Assignee: Justin Wyer
>              Labels: rich:select
>             Fix For: 5-Tracking
>
>
> rich:select has usability issues when using enableManualInput="true" this will address the issues discussed in the forum post. My current idea is to attempt to display the full item list and auto highlight the input's value.

--
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


More information about the richfaces-issues mailing list