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

Javascript includes are rendered out of order for portlets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 4.1, 4.1.1, 4.1.2, 4.1.3, 4.1.5
    • None
    • JavaScript, Portlet
    • None

    Description

      The JavaScript includes are rendered out of order when building portlets using the <ScriptIncludes> tag.

      For example, when using a dojo tab widget within a portlet, the following script tag...

      <script type="text/javascript"><!--
      dojo.require("tapestry.widget.Widget");
      // --></script>

      ...is rendered before the <ScriptIncludes> tag is able to render the dojo configuration script, causing a "dojo is not defined" JavaScript error, since the dojo object does not exist. This prevents the widget from being rendered.

      Id fix this myself, but I have no clue where the render decisions for JavaScript is made.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dcwatson84 Daniel Watson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: