WW-2601 Tabindex not working on autocompleter

also fixed tabindex for datepicker 

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@670371 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Musachy Barroso
2008-06-22 15:28:01 +00:00
parent 1fe337bb3d
commit 295150b5e9
6 changed files with 14477 additions and 30 deletions
@@ -279,6 +279,8 @@ dojo.widget.defineWidget(
//load options when page loads
preload : true,
tabIndex: "",
//from Dojo's ComboBox
showResultList: function() {
// Our dear friend IE doesnt take max-height so we need to calculate that on our own every time
@@ -418,6 +420,11 @@ dojo.widget.defineWidget(
this.comboBoxSelectionValue.value = this.initialKey;
this.textInputNode.value = this.initialValue;
//tabindex
if(!dojo.string.isBlank(this.tabIndex)) {
this.textInputNode.tabIndex = this.tabIndex;
}
//hide arrow?
if(!this.visibleDownArrow) {
dojo.html.hide(this.downArrowNode);
@@ -29,26 +29,32 @@ dojo.widget.defineWidget(
valueNotifyTopics : "",
valueNotifyTopicsArray : null,
tabIndex : "",
postCreate: function() {
struts.widget.StrutsDatePicker.superclass.postCreate.apply(this, arguments);
//set cssClass
if(this.extraArgs["class"]) {
dojo.html.setClass(this.inputNode, this.extraArgs["class"]);
}
}
//set cssStyle
if(this.extraArgs.style) {
dojo.html.setStyleText(this.inputNode, this.extraArgs.style);
}
}
//value topics
if(!dojo.string.isBlank(this.valueNotifyTopics)) {
this.valueNotifyTopicsArray = this.valueNotifyTopics.split(",");
}
//tabindex
if(!dojo.string.isBlank(this.tabIndex)) {
this.inputNode.tabIndex = this.tabIndex;
}
},
_syncValueNode:function () {
var date = this.datePicker.value;
var value = "";
@@ -69,7 +75,7 @@ dojo.widget.defineWidget(
}
this.valueNode.value = value;
},
_updateText : function() {
struts.widget.StrutsDatePicker.superclass._updateText.apply(this, arguments);
if(this.valueNotifyTopicsArray != null) {
@@ -33,29 +33,36 @@ dojo.widget.defineWidget(
inputName: "",
name: "",
valueNotifyTopics : "",
valueNotifyTopicsArray : null,
tabIndex : "",
postCreate: function() {
struts.widget.StrutsTimePicker.superclass.postCreate.apply(this, arguments);
//set cssClass
if(this.extraArgs["class"]) {
dojo.html.setClass(this.inputNode, this.extraArgs["class"]);
}
}
//set cssStyle
if(this.extraArgs.style) {
dojo.html.setStyleText(this.inputNode, this.extraArgs.style);
}
}
//value topics
if(!dojo.string.isBlank(this.valueNotifyTopics)) {
this.valueNotifyTopicsArray = this.valueNotifyTopics.split(",");
}
//tabindex
if(!dojo.string.isBlank(this.tabIndex)) {
this.inputNode.tabIndex = this.tabIndex;
}
},
_syncValueNode:function () {
var time = this.timePicker.time;
var value;
@@ -75,7 +82,7 @@ dojo.widget.defineWidget(
}
this.valueNode.value = value;
},
_updateText : function() {
struts.widget.StrutsTimePicker.superclass._updateText.apply(this, arguments);
if(this.valueNotifyTopicsArray != null) {
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -30,7 +30,7 @@ var dependencies = [
];
dependencies.prefixes = [
["struts", "../struts/2_1/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts"]
["struts", "../struts/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts"]
];
load("getDependencyList.js");