Ticket #6030 (closed defect: wontfix)

Opened 9 months ago

Last modified 5 months ago

Overriding templatePath fails in build

Reported by: peller Owned by: bill
Priority: normal Milestone: 1.2
Component: Dijit Version: 1.0
Severity: normal Keywords:
Cc:

Description

see test_Calendar, the commented out instance of dijit._Calendar at the bottom where I attempted to override the template by defining templatePath in the markup. This appears to work, but fails in a build environment, where a templateString was generated which conflicts with templatePath.

Change History

Changed 9 months ago by peller

(In [12774]) Use declare to create custom calendar instead of templatePath in markup. Fixes #1287, Refs #6030

Changed 9 months ago by bill

  • status changed from new to closed
  • resolution set to wontfix

Right, this is just the way it works; if you override templatePath then you need to override templateString too (to set it to null). No intention to change that.

Changed 9 months ago by peller

to be clear, we're saying this isn't supported in markup. there seems to be no way to set templatePath in markup with or without templateString

Changed 5 months ago by guest

  • status changed from closed to reopened
  • resolution deleted

Please fix the test page to reflect this ticket resolution (that you can’t actually override the templatePath from markup):

http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/test_Calendar.html

In lieu of formal documentation on many of the dojo components, I have resorted to using the tests as examples for how to get things working. This test page has two issues that I have found so far:

One is that it still shows overriding the templatePath from markup (which, apparently, will never work, and I wasted at least two hours trying to figure out why before I found this ticket). I’ll admit that the example showing this method of overriding is commented out in the code, but since it was there I thought it meant that it was an appropriate way to override the templatePath.

The other issue is that the example of using the custom template is broken since it does not set the templateString to null in the declaration of BigCalendar?.

Changed 5 months ago by bill

(In [14127]) Fix misleading example. Refs #6030.

Changed 5 months ago by bill

  • status changed from reopened to closed
  • resolution set to wontfix

OK, I fixed the example, sorry that misled you.

Note: See TracTickets for help on using tickets.