HI,
On IE(both IE7 and IE6), when a FilteringSelect which has option tags and hidden values is submitted, it sends (the server receives) not only the attribute value of the selected option, but also the displayed value (which key is the selectBox's name value + "_displayed_") as well.
On FF(I tried FireFox 2.0.0.10), it sends only the attribute value of the selected option.
For example, the following form sends,
- on IE
sample=1&_sample_displayed_=option B
- on FF
sample=1
This problem happens on dojo 1.0 and dojo 1.0.1. And I guess this problem does not happen on dojo 0.9.
Any hints?
dojo.require("dojo.parser");
test
dojo.require("dijit.form.FilteringSelect");
option A
option B
option C

Any answer?
Hello,
I'm having the same problem. I found different posts on that topic but apparently no answer. At least I didn't find it. I found this to happen not only with FilteringSelect but also with dijit.form.DateTextBox for instance. Firefox works fine. Any hint to make it work with Internet Explorer?
Thanks in advance
Any answer ???
Hi,
Having the same problem with the last version of dijit (1.1.1).
In IE the _displayed_ value is submitted but in Firefox the value is not submitted !!!
Any hint ?
Thanks
Georges Goebel
Possible Solution ????
Hi,
I found a solution but I don't know if it affects the components behaviour.
look in the "postCreate function" of the ValidationTextBox.js file in dijit/form/ValidationTextBox.js
there you have the lines :
this.textbox.name = this.textbox.name + "_displayed_"; this.textbox.removeAttribute("name");when you comment out the second line, it works !!!
this.textbox.name = this.textbox.name + "_displayed_"; //this.textbox.removeAttribute("name");Can anybody of the dojotoolkit committers say if this code modification is valide or not ?
Thanks
Georges
Solution for Spring MVC and _displayed_
I am having the same issue and it is causing binding failure in certain circumstances due to the way Spring determines property names.. specifically, if I bind a widget that has the _displayed_ issue directly to a List<>, spring starts to have problems..
example:
myViewBean
public List getMyListProp() {return mylist;}
spring will try to bind both the real prop AND the _displayed_ prop to the bean (probably not what you want, especially if this is a formatted integer)
the solution that I am using is to simply change the name attribute on the dijit textbox (same code snippet as above comment):
ValidationTextBox.js file in dijit/form/ValidationTextBox.js
this.textbox.name = this.textbox.name + "_displayed_";
becomes
this.textbox.name = "_displayed_" + this.textbox.name;
not sure at what point this became a problem as it only recently started happening, but I am using dojo 1.1.1 and spring 2.5.4
david