Spring Web Flow

Spring.ElementDecoration takes the wrong element name when submitting a form

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: 2.1.1
  • Component/s: None
  • Description:
    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>

Activity

Jeremy Grelle made changes - 01/Feb/09 1:44 PM
Field Original Value New Value
Remaining Estimate 0.5d [ 14400 ]
Fix Version/s 3.0.0.M1 [ 11151 ]
Original Estimate 0.5d [ 14400 ]
Keith Donald made changes - 26/Jun/10 12:56 AM
Fix Version/s 3.0.0.M1 [ 11151 ]
Fix Version/s 2.1.1 [ 11546 ]
Key SJS-21 SWF-1266
Project Spring JavaScript [ 10313 ] Spring Web Flow [ 10050 ]
Rossen Stoyanchev made changes - 13/Jul/10 8:18 AM
Resolution Duplicate [ 3 ]
Assignee Jeremy Grelle [ jeremyg484 ] Rossen Stoyanchev [ rstoya05-aop ]
Status Open [ 1 ] Closed [ 6 ]

People

Dates

  • Created:
    06/Jan/09 8:32 AM
    Updated:
    13/Jul/10 8:18 AM
    Resolved:
    13/Jul/10 8:18 AM

Time Tracking

Estimated:
0.5d
Original Estimate - 0.5d
Remaining:
0.5d
Remaining Estimate - 0.5d
Logged:
Not Specified
Time Spent - Not Specified