Ticket #692 (closed defect: fixed)
[patch][cla] ComboBox form name missing
| Reported by: | cfranks@… | Owned by: | dylan |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Widgets | Version: | 0.3 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
When I create a ComboBox widget, the input field's name isn't being set for the submitted form.
This is the code I'm using to create the ComboBox:
<input class="dojo_autocomplete_textfield" id="widget_name" name="name" type="text" />
<script type="text/javascript">
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.ComboBox");
dojo.widget.createWidget(
"ComboBox",
{mode: "remote",
dataUrl: "dojo.pl?name_search=%{searchString}",
formInputName: "name"},
dojo.byId("widget_name")
);
If I type 'foo' into the ComboBox, and submit the form, I get the values:
'' => 'foo' '_selected' => 'foo'
Looking at the code for html/ComboBox.js, I can see that the variable "formInputName" is never used. It also doesn't seem to be successfully getting the name from the input tag attribute.
Also, is it really necessary for the ${name}_selected value to be sent in the form?
I'm running dojo svn version 3932
Attachments
Change History
Note: See
TracTickets for help on using
tickets.