#13230 closed defect (fixed)
dojox.mvc.repeat get error when parsed in template
Reported by: | zhangyp | Owned by: | rahul |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | DojoX MVC | Version: | 1.7.0b1 |
Keywords: | Cc: | Ed Chatelain | |
Blocked By: | Blocking: |
Description
When we use ref: '${this.index}' for data binding in dojox.mvc.repeat, '${this.index}' will be treated as variable in Django template by dijit._TemplatedMixin in _stringRepl: function(tmpl) and will cause the function to throw error.
Is there anyway to prevent this being replaced when dojox.mvc.repeat is used in template string?
Attachments (2)
Change History (10)
Changed 11 years ago by
Attachment: | templated.zip added |
---|
comment:1 Changed 11 years ago by
Cc: | Ed Chatelain added; [email protected]… [email protected]… removed |
---|---|
Component: | Dojox → DojoX MVC |
Owner: | changed from Adam Peller to rahul |
comment:2 Changed 11 years ago by
Priority: | high → normal |
---|---|
severity: | critical → normal |
comment:3 Changed 11 years ago by
comment:4 Changed 11 years ago by
I will add a patch which adds support for an optional attribute named exprchar. So for example is exprchar is set to # on a dojox.mvc.Repeat, then the substitution would look for something like this #{this.index} instead of ${this.index}. I also added a testcase for this problem.
There was one other minor update to dojox.mvc._Container.js to remove a js warning for eval(exp, pThis) as reported in ticket 13317.
Changed 11 years ago by
Attachment: | 13230-mvc.patch added |
---|
comment:5 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:6 Changed 11 years ago by
comment:8 Changed 11 years ago by
Milestone: | tbd → 1.7 |
---|
One of the options may be to avoid getting pigeonholed into a specific syntax that may step on someone else's toes. We are looking into making the syntax customizable (per repeat instance even).