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

The order of loading bodyscripts and initializationscripts is non deterministic

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Later
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.6
    • Component/s: XHR/dhtml/Ajax
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: