#14623 closed defect (worksforme)
use of dijit.form.ComboBox report error of template file not found (404 error)
Reported by: | richso | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Dijit | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
simple use of the ComboBox?, for example: <select type="text" dojoType="dijit.form.ComboBox?" name="freetext"
value=""
store="searchPhaseStore" searchAttr="search_text"></select>
the javascript console report this error: Failed to load resource: the server responded with a status of 404 (Not Found)
http://xxx/script/dojo171/dijit/form/templates/DropDownBox.html
Change History (3)
comment:1 Changed 10 years ago by
Component: | General → Dijit |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
comment:2 Changed 10 years ago by
I've just checked with the release 1.7.1 zip and tar.gz file that downloaded from dojotoolkit.org but there is no "templates" folder inside the "dijit/form/"; however the folder are in place in the source distributions. pls check !!!
comment:3 Changed 10 years ago by
But, in the release the template text is rolled into the js files.
I downloaded http://download.dojotoolkit.org/release-1.7.1/dojo-release-1.7.1.zip, and in ComboBoxMixin.js.uncompressed.js it has:
//>>built require({cache:{ 'url:dijit/form/templates/DropDownBox.html':"<div class=\"dijit dijitReset dijitInline dijitLeft\"\n\tid=\"widget_${id}\"\n\trole=\"combobox\"\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\n\t\tdata-dojo-attach-point=\"_buttonNode, _popupStateNode\" role=\"presentation\"\n\t\t><input class=\"dijitReset dijitInputField dijitArrowButtonInner\" value=\"▼ \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"Χ \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset dijitInputInner' ${!nameAttrSetting} type=\"text\" autocomplete=\"off\"\n\t\t\tdata-dojo-attach-point=\"textbox,focusNode\" role=\"textbox\" aria-haspopup=\"true\"\n\t/></div\n></div>\n"}}); define("dijit/form/ComboBoxMixin", [ "dojo/_base/declare", // declare "dojo/_base/Deferred", "dojo/_base/kernel", // kernel.deprecated "dojo/_base/lang", // lang.mixin "dojo/store/util/QueryResults", // dojo.store.util.QueryResults "./_AutoCompleterMixin", "./_ComboBoxMenu", "../_HasDropDown", "dojo/text!./templates/DropDownBox.html" ], function(declare, Deferred, kernel, lang, QueryResults, _AutoCompleterMixin, _ComboBoxMenu, _HasDropDown, template){
(Note the third line has the inlined text from DropDownBox.html.)
Not sure why that "cached" DropDownBox.html isn't working for you. I did try a test file against that release zip, and it's working fine for me.
Naturally, we have tested simple ComboBox usage and it's working for us. Plus, that file does exist in the release. If you have an HTML file that reproduces the problem you can attach it.