Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2920

inline <alloy:outputScript>s and <alloy:outputStylesheet>s cannot be rendered in the <head> section in Liferay Portal

    Details

      Description

      Steps to reproduce:

      1. In the jsf-applicant-portlet's applicant.xhtml, add the following:

        <alloy:outputScript target="head">
            // Note: this will not work on IE. Use Chrome or Firefox to test this.
            alert('The script\'s parent element is ' +
                document.currentScript.parentElement.tagName);
        </alloy:outputScript>
      2. Deploy the portlet to Liferay Portal.

      3. Navigate to the portlet.

      If the bug still exists, the following alert message will appear:

      The script's parent element is DIV

      If the bug is fixed, the following alert message will appear:

      The script's parent element is HEAD

      This issue will also affect metal:outputScript, metal:outputStylesheet, and any other components which implement a target="head" feature or are designed to be rendered in the head section (except h:outputScript and h:outputStylesheet, those components work correctly).

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              kyle.stiemann Kyle Stiemann
              Reporter:
              kyle.stiemann Kyle Stiemann
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development

                  Subcomponents