Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#1182 closed enhancement (fixed)

Need way to disable auto-namespacing feature

Reported by: morris Owned by: Adam Peller
Priority: high Milestone:
Component: Widgets Version: 0.4
Keywords: Cc:
Blocked By: Blocking:

Description

Tutika said:

I am using DOJO for XHRs and tree node . I built custom dojo.js and my jsp page is having some unresolved tags like <test:XXXX > Hello </test:XXXX> surprisingly , as soon as the page loads , dojo is making some XHRs to these following URIs.. GET http://localhost:9080/portal/dojo/src/namespaces/test.js

By default dojo currently treats all xml style tags as dojo widgets and attempts to autoload them.

However to play nicely with other xml namespaces within the document, other libraries, and frameworks, there should be:

  • a djConfig flag to disable the widget autoloading feature (i.e. needed widgets would need to loaded using dojo.require(), or by script tags, or included in the build).
  • and/or maybe a djConfig list of namespaces which are to be autoloaded.

Change History (2)

comment:1 Changed 13 years ago by Adam Peller

Resolution: fixed
Status: newclosed

see changeset [5295]

you have your choice: djConfig.includeNamespace djConfig.excludeNamespace

either one can contain a string or an array of strings. I need to document this in the wiki...

comment:2 Changed 12 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.