Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1219

The order of loading bodyscripts and initializationscripts is non deterministic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Later
    • 4.1.1
    • 4.1.6
    • XHR/dhtml/Ajax
    • None
    • FF 2.0

    Description

      A comment in core.js reads 'load body scripts before initialization'...
      Due to the way loadScriptContent has to be implemented (to circumvent IE issues) this doesn't always hold true.

      So, a call to taperstry.widget.synchronizeWidgetState (in an initialization script) can sometimes get executed BEFORE a
      dojo.require('tapestry.widget.Widget') (typically in body scripts) resulting in
      'taperstry.widget.synchronizeWidgetState not a function' javascript errors.

      Perhaps somehow block until all body scripts get processed?

      Attachments

        Activity

          People

            andyhot Andreas Andreou
            andyhot Andreas Andreou
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: