Hide
If you decorate two (or more) elements with the same widgetType (dijit.form.FilteringSelect), you will get the same element name when you submit the form (m1=1&m1= for the following sample).
<form method="POST" action="test.html" acceptCharset="UTF-8">
<select id="m1" name="m1">
<option value="1">test1</option>
</select>
<select id="m2" name="m2">
<option value="2">test2</option>
</select>
<input type="submit" />
</form>
<script type="text/javascript">
Spring.addDecoration(new Spring.ElementDecoration({
elementId: "m1",
widgetType: "dijit.form.FilteringSelect"}));
Spring.addDecoration(new Spring.ElementDecoration({
elementId: "m2",
widgetType: "dijit.form.FilteringSelect"}));
</script>
Show
If you decorate two (or more) elements with the same widgetType (dijit.form.FilteringSelect), you will get the same element name when you submit the form (m1=1&m1= for the following sample).
<form method="POST" action="test.html" acceptCharset="UTF-8">
<select id="m1" name="m1">
<option value="1">test1</option>
</select>
<select id="m2" name="m2">
<option value="2">test2</option>
</select>
<input type="submit" />
</form>
<script type="text/javascript">
Spring.addDecoration(new Spring.ElementDecoration({
elementId: "m1",
widgetType: "dijit.form.FilteringSelect"}));
Spring.addDecoration(new Spring.ElementDecoration({
elementId: "m2",
widgetType: "dijit.form.FilteringSelect"}));
</script>