[Dojo-interest] Strange dijit.form.NumberTextBox behaviour

Eneko Lacunza elacunza at binovo.es
Wed Jun 30 13:45:15 EDT 2010


Hi all,

I just updated an app to dojo 1.4.3 and noticed a strange behaviour in
dijit.form.NumberTextBox.

If the original HTML is as follows:
<input class="cantidad" type="text" dojoType="dijit.form.NumberTextBox"
id="cantidad_2_0" name="lineas['2_0'][cantidad]" value="">

Dojo 1.4.3 outputs the following hidden field:
<input type="hidden" ][cantidad]="" 2_0="" name="lineas[" value="">

But dojo 1.3 did output something that I expected more:
<input type="text" style="display: none;"
name="lineas['2_0'][cantidad]">

Is this a bug or a know feature in dojo 1.4? Dojo 1.4.3 output breaks
the app, as it is changing the form field name.

Thanks a lot.
Eneko

-- 
Zuzendari Teknikoa / Director Técnico
Binovo IT Human Project, S.L.
Telf. 943493611
Astigarraga bidea 2, planta 2, Derecha, Oficina 6; 20180 Oiartzun
www.binovo.es



More information about the Dojo-interest mailing list