[
https://issues.jboss.org/browse/RF-11088?page=com.atlassian.jira.plugin.s...
]
J W edited comment on RF-11088 at 7/1/13 6:21 AM:
--------------------------------------------------
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);
this.__save();
}
},
{code}
This is working fine at the moment. The only thing missing is that the current selected
value does not get highlighted in the popuplist, but this seems to be a general issue,
because it is the same with enableManualInput=false.
was (Author: jigg4):
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 current selected
value does not get highlighted in the popuplist, but this seems to be a general issue,
because it is the same with enableManualInput=false.
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