Opened 12 years ago
Closed 12 years ago
#5633 closed defect (fixed)
dojox.dtl._Widget fails to render {% for %} inside <select>
Reported by: | guest | Owned by: | Neil Roberts |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Dojox | Version: | 1.0 |
Keywords: | Cc: | pparent@… | |
Blocked By: | Blocking: |
Description
Firefox 2.0.0.9 RedHat? Enterprise Linux 5 Dojo 1.0.2
Problem
Using a Django template for loop inside of a select tag to populate with options fails. Using the same tag inside a ul, ol, p, etc. works fine.
For example, assume my_list is an array of [1,2,3] in the Context object. Then the following works:
<div> <ul> {% for i in my_list %} <li>{{i}}</li> {% endfor %} </ul> </div>
but this does not:
<div> <select> {% for i in my_list %} <option>{{i}}</option> {% endfor %} </select> </div>
In the second case, the loop appears to execute once, but i is undefined when emitted.
Email me if you need more info or can't reproduce.
Change History (2)
comment:1 Changed 12 years ago by
Owner: | changed from Adam Peller to Neil Roberts |
---|
comment:2 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
(In [12206]) Fixes #5633. !strict